diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index f449bf5..f34c3bf 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -294,6 +294,11 @@ class StartServer extends Command */ 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->comment(' Press Ctrl+C to stop the server'); $this->newLine(); @@ -346,6 +351,7 @@ class StartServer extends Command */ protected function triggerSoftShutdown() { + \Log::channel('websocket')->info('Triggering soft shutdown...'); $channelManager = $this->laravel->make(ChannelManager::class); // Close the new connections allowance on this server.