Remove much logging output in gateway (#393)

This commit is contained in:
cybermaggedon 2025-05-24 12:10:05 +01:00 committed by GitHub
parent 448819ed47
commit 3ed9274d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 2 additions and 14 deletions

View file

@ -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:

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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