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 = [];