This commit is contained in:
yumoqing 2026-05-15 16:55:01 +08:00
parent fb25b4a28d
commit 6cf4dbb8cc

View File

@ -3,6 +3,7 @@ import inspect
import traceback
import weakref
from typing import Callable, Any
from appPublic.log import debug, error, exception, warning
class WeakCallback:
@ -141,8 +142,7 @@ class EventDispatcher:
return True
except Exception as e:
print(
debug(
f"[EventDispatcher] "
f"handler failed: "
f"event={event_name}, "
@ -150,7 +150,8 @@ class EventDispatcher:
)
if self.log_traceback:
traceback.print_exc()
debug(f'{trackback.format_exc()}')
# traceback.print_exc()
await self._run_error_handler(
event_name,