改名
This commit is contained in:
@@ -59,7 +59,7 @@ class Consumer extends Process
|
||||
Consumer::addTask($crontab);
|
||||
}
|
||||
} catch (\Throwable $throwable) {
|
||||
$this->application->addError($throwable->getMessage());
|
||||
logger()->addError($throwable->getMessage(),'throwable');
|
||||
} finally {
|
||||
fire(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
}
|
||||
|
||||
+1
-1
@@ -232,7 +232,7 @@ class Event extends BaseObject
|
||||
}
|
||||
return true;
|
||||
} catch (\Throwable $throwable) {
|
||||
return $this->addError($throwable);
|
||||
return $this->addError($throwable,'throwable');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ class ServerInotify extends Process
|
||||
}
|
||||
|
||||
/**
|
||||
* 清理所有inotify监听
|
||||
* @throws Exception
|
||||
*/
|
||||
public function clearWatch()
|
||||
{
|
||||
@@ -240,6 +240,7 @@ class ServerInotify extends Process
|
||||
try {
|
||||
inotify_rm_watch($this->inotify, $wd);
|
||||
} catch (\Throwable $exception) {
|
||||
logger()->addError($exception, 'throwable');
|
||||
}
|
||||
}
|
||||
$this->watchFiles = [];
|
||||
|
||||
Reference in New Issue
Block a user