IA logging

This commit is contained in:
Fabian @ Blax Software 2025-12-11 11:25:47 +01:00
parent 3689a084d1
commit e470a98f69
1 changed files with 2 additions and 0 deletions

View File

@ -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();