mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 20:05:13 +02:00
Remove much logging output in gateway (#393)
This commit is contained in:
parent
448819ed47
commit
3ed9274d84
7 changed files with 2 additions and 14 deletions
|
|
@ -65,8 +65,6 @@ class LibrarianRequestor(ServiceRequestor):
|
||||||
|
|
||||||
def from_response(self, message):
|
def from_response(self, message):
|
||||||
|
|
||||||
print(message)
|
|
||||||
|
|
||||||
response = {}
|
response = {}
|
||||||
|
|
||||||
if message.document_metadata:
|
if message.document_metadata:
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,6 @@ class Mux:
|
||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print(id, svc, request)
|
|
||||||
|
|
||||||
await self.start_request_task(
|
await self.start_request_task(
|
||||||
self.ws, id, flow, svc, request, workers
|
self.ws, id, flow, svc, request, workers
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,6 @@ class ServiceRequestor:
|
||||||
|
|
||||||
resp, fin = self.from_response(resp)
|
resp, fin = self.from_response(resp)
|
||||||
|
|
||||||
print(resp, fin, flush=True)
|
|
||||||
|
|
||||||
if responder:
|
if responder:
|
||||||
await responder(resp, fin)
|
await responder(resp, fin)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,6 @@ class ServiceRequestor:
|
||||||
|
|
||||||
resp, fin = self.from_inbound(resp)
|
resp, fin = self.from_inbound(resp)
|
||||||
|
|
||||||
print(resp, fin)
|
|
||||||
|
|
||||||
await self.receiver(resp, fin)
|
await self.receiver(resp, fin)
|
||||||
|
|
||||||
if fin: break
|
if fin: break
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ class TriplesQueryRequestor(ServiceRequestor):
|
||||||
)
|
)
|
||||||
|
|
||||||
def from_response(self, message):
|
def from_response(self, message):
|
||||||
print(message)
|
|
||||||
return {
|
return {
|
||||||
"response": serialize_subgraph(message.triples)
|
"response": serialize_subgraph(message.triples)
|
||||||
}, True
|
}, True
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,8 @@ class ConstantEndpoint:
|
||||||
|
|
||||||
data = await request.json()
|
data = await request.json()
|
||||||
|
|
||||||
print(data)
|
|
||||||
|
|
||||||
async def responder(x, fin):
|
async def responder(x, fin):
|
||||||
print(x)
|
pass
|
||||||
|
|
||||||
resp = await self.dispatcher.process(data, responder)
|
resp = await self.dispatcher.process(data, responder)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,8 @@ class VariableEndpoint:
|
||||||
|
|
||||||
data = await request.json()
|
data = await request.json()
|
||||||
|
|
||||||
print(data)
|
|
||||||
|
|
||||||
async def responder(x, fin):
|
async def responder(x, fin):
|
||||||
print(x)
|
pass
|
||||||
|
|
||||||
resp = await self.dispatcher.process(
|
resp = await self.dispatcher.process(
|
||||||
data, responder, request.match_info
|
data, responder, request.match_info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue