From 2ad89a61d2d6b5cdd29a04c2c0bb789296e70222 Mon Sep 17 00:00:00 2001 From: alemidev Date: Sun, 3 Jul 2022 19:10:36 +0200 Subject: [PATCH] chore: show which callback threw an exc --- src/treepuncher/traits/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treepuncher/traits/callbacks.py b/src/treepuncher/traits/callbacks.py index ae0ebc8..cf5fd37 100644 --- a/src/treepuncher/traits/callbacks.py +++ b/src/treepuncher/traits/callbacks.py @@ -36,7 +36,7 @@ class CallbacksHolder: try: return await cb(*args) except Exception: - logging.exception("Exception processing callback") + logging.exception("Exception processing callback '%s'", cb.__name__) return None finally: self._tasks.pop(uid)