From d552c977845ad7b8c72f6b4ca870988861838ce8 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Mon, 6 Jan 2025 04:37:24 +0000 Subject: [PATCH] fix: RecursionError log msg when queue is broken --- a_sync/primitives/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a_sync/primitives/queue.py b/a_sync/primitives/queue.py index 59fbc95c..4fab3ea5 100644 --- a/a_sync/primitives/queue.py +++ b/a_sync/primitives/queue.py @@ -257,7 +257,7 @@ async def __worker_exc_wrap(self: "ProcessingQueue"): try: return await func(self) except Exception as e: - logger.error("%s for %s is broken!!!", type(self).__name__, self.func) + logger.error("%s is broken!!!", self) logger.exception(e) raise