mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-27 17:36:23 +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):
|
||||
|
||||
print(message)
|
||||
|
||||
response = {}
|
||||
|
||||
if message.document_metadata:
|
||||
|
|
|
|||
|
|
@ -149,7 +149,6 @@ class Mux:
|
|||
break
|
||||
|
||||
try:
|
||||
print(id, svc, request)
|
||||
|
||||
await self.start_request_task(
|
||||
self.ws, id, flow, svc, request, workers
|
||||
|
|
|
|||
|
|
@ -82,8 +82,6 @@ class ServiceRequestor:
|
|||
|
||||
resp, fin = self.from_response(resp)
|
||||
|
||||
print(resp, fin, flush=True)
|
||||
|
||||
if responder:
|
||||
await responder(resp, fin)
|
||||
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ class ServiceRequestor:
|
|||
|
||||
resp, fin = self.from_inbound(resp)
|
||||
|
||||
print(resp, fin)
|
||||
|
||||
await self.receiver(resp, fin)
|
||||
|
||||
if fin: break
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ class TriplesQueryRequestor(ServiceRequestor):
|
|||
)
|
||||
|
||||
def from_response(self, message):
|
||||
print(message)
|
||||
return {
|
||||
"response": serialize_subgraph(message.triples)
|
||||
}, True
|
||||
|
|
|
|||
|
|
@ -47,10 +47,8 @@ class ConstantEndpoint:
|
|||
|
||||
data = await request.json()
|
||||
|
||||
print(data)
|
||||
|
||||
async def responder(x, fin):
|
||||
print(x)
|
||||
pass
|
||||
|
||||
resp = await self.dispatcher.process(data, responder)
|
||||
|
||||
|
|
|
|||
|
|
@ -47,10 +47,8 @@ class VariableEndpoint:
|
|||
|
||||
data = await request.json()
|
||||
|
||||
print(data)
|
||||
|
||||
async def responder(x, fin):
|
||||
print(x)
|
||||
pass
|
||||
|
||||
resp = await self.dispatcher.process(
|
||||
data, responder, request.match_info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue