From 1086534302027a6270d712759ad4987214d8d2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 18 Apr 2023 23:47:30 +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 --- Abstracts/AsyncServer.php | 2 +- CoroutineServer.php | 2 +- HotReload.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index 31a9373..4e3274f 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -173,7 +173,7 @@ class AsyncServer implements ServerInterface \Kiri::getLogger()->alert('Pid ' . getmypid() . ' get signo ' . $no); $this->shutdown(); } catch (\Throwable $exception) { - \Kiri::getLogger()->error($exception->getMessage()); + error($exception); } } diff --git a/CoroutineServer.php b/CoroutineServer.php index dbcbe8c..d8ef78c 100644 --- a/CoroutineServer.php +++ b/CoroutineServer.php @@ -148,7 +148,7 @@ class CoroutineServer implements ServerInterface \Kiri::getLogger()->alert('Pid ' . getmypid() . ' get signo ' . $no); $this->shutdown(); } catch (\Throwable $exception) { - \Kiri::getLogger()->error($exception->getMessage()); + error($exception); } } diff --git a/HotReload.php b/HotReload.php index 2685ce4..2e4b859 100644 --- a/HotReload.php +++ b/HotReload.php @@ -280,7 +280,7 @@ class HotReload extends Command try { inotify_rm_watch($inotify, $wd); } catch (\Throwable $exception) { - logger()->addError($exception, 'throwable'); + error($exception); } } $this->watchFiles = [];