diff --git a/EventDispatch.php b/EventDispatch.php index adae268..15cf838 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -42,7 +42,7 @@ class EventDispatch extends Component implements EventDispatcherInterface try { call_user_func($item, $event); } catch (\Throwable $exception) { - error($exception); + \Kiri::getLogger()->json_log($exception); } if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { break;