diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index facd3ac0..0a441ff2 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -105,7 +105,7 @@ class Inotify try { inotify_rm_watch($this->inotify, $wd); } catch (\Throwable $exception) { - logger()->addError($exception, 'throwable'); + logger()->addError($exception->getMessage(), 'throwable'); } } $this->watchFiles = [];