This commit is contained in:
2020-09-07 17:36:52 +08:00
parent da56a09161
commit ab66641310
+3 -3
View File
@@ -188,7 +188,7 @@ class ServerInotify extends Process
try { try {
inotify_rm_watch($this->inotify, $wd); inotify_rm_watch($this->inotify, $wd);
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->debug($exception->getMessage()); $this->application->debug($exception->getMessage());
} finally { } finally {
$this->watchFiles = []; $this->watchFiles = [];
} }
@@ -200,8 +200,8 @@ class ServerInotify extends Process
protected function onErrorHandler() protected function onErrorHandler()
{ {
[$code, $message, $file, $line, $args] = func_get_args(); [$code, $message, $file, $line, $args] = func_get_args();
$this->debug('Error:' . $message); $this->application->debug('Error:' . $message);
$this->debug($file . ':' . $line); $this->application->debug($file . ':' . $line);
} }