Merge pull request #2287 from pipecat-ai/aleix/asyncio-trace-logging

utils(asyncio): use trace logging for some cancelling messages
This commit is contained in:
Aleix Conchillo Flaqué
2025-07-29 11:56:25 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class WatchdogPriorityQueue(asyncio.PriorityQueue):
get_result = await super().get()
if isinstance(get_result, _WatchdogPriorityCancelSentinel):
logger.debug(
logger.trace(
"Received WatchdogPriorityCancelSentinel, throwing CancelledError to force cancelling"
)
raise asyncio.CancelledError("Cancelling watchdog queue get() call.")

View File

@@ -62,7 +62,7 @@ class WatchdogQueue(asyncio.Queue):
get_result = await super().get()
if isinstance(get_result, _WatchdogQueueCancelSentinel):
logger.debug(
logger.trace(
"Received WatchdogQueueCancelFrame, throwing CancelledError to force cancelling"
)
raise asyncio.CancelledError("Cancelling watchdog queue get() call.")