chore: fixing up logging messages
This commit is contained in:
@@ -56,11 +56,8 @@ class RICommunicationAgent(BaseAgent):
|
||||
"we probably dont have any receivers... but let's check!"
|
||||
)
|
||||
|
||||
# Wait up to three seconds for a reply:)
|
||||
# Wait up to {seconds_to_wait_total/2} seconds for a reply:)
|
||||
try:
|
||||
self.agent.logger.debug(
|
||||
f"waiting for message for{seconds_to_wait_total / 2} seconds."
|
||||
)
|
||||
message = await asyncio.wait_for(
|
||||
self.agent._req_socket.recv_json(), timeout=seconds_to_wait_total / 2
|
||||
)
|
||||
@@ -96,7 +93,7 @@ class RICommunicationAgent(BaseAgent):
|
||||
# Try to reboot.
|
||||
await self.agent.setup()
|
||||
|
||||
self.agent.logger.debug('Received message "%s"', message)
|
||||
self.agent.logger.debug(f'Received message "{message}" from RI.')
|
||||
if "endpoint" not in message:
|
||||
self.agent.logger.error("No received endpoint in message, excepted ping endpoint.")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user