From 89597f8ac22c4ff61d67ff994a398c3bf6575266 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 20 Aug 2025 10:19:20 -0700 Subject: [PATCH] Reduce log level for asyncio.CancelledError exceptions --- splitio/push/splitsse.py | 2 +- splitio/push/sse.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/splitio/push/splitsse.py b/splitio/push/splitsse.py index 63e24b40..788648d4 100644 --- a/splitio/push/splitsse.py +++ b/splitio/push/splitsse.py @@ -247,7 +247,7 @@ async def stop(self): try: await self._event_source_ended.wait() except asyncio.CancelledError as e: - _LOGGER.error("Exception waiting for event source ended") + _LOGGER.debug("Exception waiting for event source ended") _LOGGER.debug('stack trace: ', exc_info=True) pass diff --git a/splitio/push/sse.py b/splitio/push/sse.py index 84d73224..8cde7f98 100644 --- a/splitio/push/sse.py +++ b/splitio/push/sse.py @@ -205,7 +205,7 @@ async def shutdown(self): try: await self._done.wait() except asyncio.CancelledError: - _LOGGER.error("Exception waiting for SSE connection to end") + _LOGGER.debug("Exception waiting for SSE connection to end") _LOGGER.debug('stack trace: ', exc_info=True) pass