chore: fixing up logging messages
This commit is contained in:
@@ -39,7 +39,6 @@ async def ping_stream(request: Request):
|
||||
|
||||
async def event_stream():
|
||||
# Set up internal socket to receive ping updates
|
||||
logger.debug("Ping stream router event stream entered.")
|
||||
|
||||
sub_socket = Context.instance().socket(zmq.SUB)
|
||||
sub_socket.connect(settings.zmq_settings.internal_sub_address)
|
||||
@@ -52,12 +51,10 @@ async def ping_stream(request: Request):
|
||||
# So, True - False - True - False for connectivity.
|
||||
# Let's still check:)
|
||||
while True:
|
||||
logger.debug("Ping stream entered listening ")
|
||||
try:
|
||||
topic, body = await asyncio.wait_for(
|
||||
sub_socket.recv_multipart(), timeout=ping_frequency
|
||||
)
|
||||
logger.debug(f"got ping change in ping_stream router: {body}")
|
||||
connected = json.loads(body)
|
||||
except TimeoutError:
|
||||
logger.debug("got timeout error in ping loop in ping router")
|
||||
|
||||
Reference in New Issue
Block a user