From acce08430052ca95b367dd763da5245e2e950607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 16 Jun 2022 18:58:26 +0800 Subject: [PATCH] modify plugin name --- EventDispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventDispatch.php b/EventDispatch.php index 5c6c3e1..77296c7 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -42,7 +42,7 @@ class EventDispatch extends Component implements EventDispatcherInterface try { $listener($event); }catch (\Throwable $exception) { - $this->logger->addError($exception); + $this->logger->error($exception->getMessage(), [$exception]); } if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { break;