IA logging
This commit is contained in:
parent
ae22264aea
commit
778d038b5a
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue