IA logging

This commit is contained in:
Fabian @ Blax Software 2025-12-11 11:23:23 +01:00
parent ae22264aea
commit 778d038b5a
1 changed files with 6 additions and 0 deletions

View File

@ -294,6 +294,11 @@ class StartServer extends Command
*/ */
protected function startServer() protected function startServer()
{ {
\Log::channel('websocket')->info('Starting WebSocket server...', [
'host' => $this->option('host'),
'port' => $this->option('port'),
]);
$this->components->info("Starting the WebSocket server on port {$this->option('port')}..."); $this->components->info("Starting the WebSocket server on port {$this->option('port')}...");
$this->comment(' <fg=yellow;options=bold>Press Ctrl+C to stop the server</>'); $this->comment(' <fg=yellow;options=bold>Press Ctrl+C to stop the server</>');
$this->newLine(); $this->newLine();
@ -346,6 +351,7 @@ class StartServer extends Command
*/ */
protected function triggerSoftShutdown() protected function triggerSoftShutdown()
{ {
\Log::channel('websocket')->info('Triggering soft shutdown...');
$channelManager = $this->laravel->make(ChannelManager::class); $channelManager = $this->laravel->make(ChannelManager::class);
// Close the new connections allowance on this server. // Close the new connections allowance on this server.