This commit is contained in:
2023-04-16 02:46:54 +08:00
parent d3897d3337
commit 03ee9b4275
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -144,10 +144,10 @@ class CoroutineServer implements ServerInterface
public function onSigint($no, array $signInfo): void
{
try {
$this->logger->alert('Pid ' . getmypid() . ' get signo ' . $no);
\Kiri::getLogger()->alert('Pid ' . getmypid() . ' get signo ' . $no);
$this->shutdown();
} catch (\Throwable $exception) {
$this->logger->error($exception->getMessage());
\Kiri::getLogger()->error($exception->getMessage());
}
}