IA logging
This commit is contained in:
parent
3689a084d1
commit
e470a98f69
|
|
@ -222,12 +222,14 @@ class StartServer extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->loop->addSignal(SIGTERM, function () {
|
$this->loop->addSignal(SIGTERM, function () {
|
||||||
|
\Log::channel('websocket')->info('Received SIGTERM, closing existing connections...');
|
||||||
$this->line('Closing existing connections...');
|
$this->line('Closing existing connections...');
|
||||||
|
|
||||||
$this->triggerSoftShutdown();
|
$this->triggerSoftShutdown();
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->loop->addSignal(SIGINT, function () {
|
$this->loop->addSignal(SIGINT, function () {
|
||||||
|
\Log::channel('websocket')->info('Received SIGINT, closing existing connections...');
|
||||||
$this->line('Closing existing connections...');
|
$this->line('Closing existing connections...');
|
||||||
|
|
||||||
$this->triggerSoftShutdown();
|
$this->triggerSoftShutdown();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue