Skip to content

Commit

Permalink
chore: make sure websocket timeouts are logged as warnings (#112)
Browse files Browse the repository at this point in the history
* chore: make sure websocket timeouts are logged as warnings

* chore: include sub_id in timeout warning
  • Loading branch information
mikeshultz authored Sep 19, 2024
1 parent 2f1382b commit eae33b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silverback/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def get_subscription_data_nowait(
try:
await self._receive(timeout=timeout)
except TimeoutError:
logger.debug("Receive call timed out.")
logger.warning(f"Receive call timed out ({sub_id}).")
return
else:
try:
Expand Down

0 comments on commit eae33b9

Please sign in to comment.