Skip to content

Commit

Permalink
EventBroadcaster: Improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Jun 20, 2023
1 parent a2e77b5 commit 53f2a21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fastapi_websocket_pubsub/event_broadcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def __read_notifications__(self):
async for event in subscriber:
try:
notification = BroadcastNotification.parse_raw(event.message)
logger.info(
logger.debug(
"Handling incoming broadcast event: {}".format(
{
"topics": notification.topics,
Expand All @@ -276,3 +276,6 @@ async def __read_notifications__(self):
)
except:
logger.exception("Failed handling incoming broadcast")
logger.info(
"No more events to read from subscriber (underlying connection closed)"
)

0 comments on commit 53f2a21

Please sign in to comment.