This commit is contained in:
2021-04-15 16:34:12 +08:00
parent 2f5f86a5ab
commit 1a24daf8dc
4 changed files with 9 additions and 12 deletions
+3 -3
View File
@@ -265,8 +265,8 @@ class ServerInotify extends Process
if (str_contains($message, 'The file descriptor is not an inotify instance')) {
return;
}
$this->application->debug('Error:' . $message);
$this->application->debug($file . ':' . $line);
logger()->debug('Error:' . $message);
logger()->debug($file . ':' . $line);
}
@@ -279,7 +279,7 @@ class ServerInotify extends Process
{
//目录不存在
if (!is_dir($dir)) {
return $this->application->addError("[$dir] is not a directory.");
return logger()->addError("[$dir] is not a directory.");
}
//避免重复监听
if (isset($this->watchFiles[$dir])) {