From f22d8463e39cbc545c035001d645b25831353e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 23 Jun 2022 00:39:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EventDispatch.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/EventDispatch.php b/EventDispatch.php index d9a49db..0ff3c8d 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -41,13 +41,16 @@ class EventDispatch extends Component implements EventDispatcherInterface return $event; } $lists->top(); + + $sc = ''; + while ($lists->valid()) { try { $current = $lists->current(); if (is_array($current)) { - $this->logger->alert($current[0]::class . '::' . $current[1]); + $sc .= $current[0]::class . '::' . $current[1] . PHP_EOL; } else if (is_string($current)) { - $this->logger->alert($current); + $sc .= $current . PHP_EOL; } call_user_func($current, $event); } catch (\Throwable $exception) { @@ -58,6 +61,9 @@ class EventDispatch extends Component implements EventDispatcherInterface } $lists->next(); } + + $this->logger->error($sc); + return $event; }