From eae33b9c6b2bfb73ff15c61b1c09ba5f4b289330 Mon Sep 17 00:00:00 2001 From: Mike Shultz Date: Wed, 18 Sep 2024 20:15:29 -0600 Subject: [PATCH] chore: make sure websocket timeouts are logged as warnings (#112) * chore: make sure websocket timeouts are logged as warnings * chore: include sub_id in timeout warning --- silverback/subscriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silverback/subscriptions.py b/silverback/subscriptions.py index 087eaf87..6aa42e44 100644 --- a/silverback/subscriptions.py +++ b/silverback/subscriptions.py @@ -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: