Skip to content

Commit

Permalink
fix: Clean up debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Feb 28, 2024
1 parent 488c479 commit 581f450
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/callosum/lower/zeromq.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,15 @@ async def recv_message(self) -> AsyncGenerator[Optional[RawHeaderBody], None]:
else:
# client
yield RawHeaderBody(raw_header, raw_body, None)
else:
# Ignore if the peer has sent a malformed multipart message.
log.debug(
"ZeroMQRPCConnection.recv_message(): "
"ignoring an invalid message from the peer..."
)
except Exception as e:
# ValueError may happen when there are garbage packets accepted by
# the zmq socket.
log.debug(
"ZeroMQRPCConnection.recv_message(): "
"exception caught in the recv loop, continuing...",
Expand Down

0 comments on commit 581f450

Please sign in to comment.