Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 5f4a91a

Browse files
author
Pascal Baljet
committed
Update StartWebSocketServer.php
1 parent dc994c7 commit 5f4a91a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Console/StartWebSocketServer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class StartWebSocketServer extends Command
2121
{
22-
protected $signature = 'websockets:serve {--host=0.0.0.0} {--port=6001} ';
22+
protected $signature = 'websockets:serve {--host=0.0.0.0} {--port=6001} {--debug : Forces the HttpLogger to be enabled and thereby overrides the app.debug config setting } ';
2323

2424
protected $description = 'Start the Laravel WebSocket Server';
2525

@@ -67,7 +67,7 @@ protected function configureHttpLogger()
6767
{
6868
app()->singleton(HttpLogger::class, function () {
6969
return (new HttpLogger($this->output))
70-
->enable(config('app.debug'))
70+
->enable($this->option('debug') ?: config('app.debug'))
7171
->verbose($this->output->isVerbose());
7272
});
7373

@@ -78,7 +78,7 @@ protected function configureMessageLogger()
7878
{
7979
app()->singleton(WebsocketsLogger::class, function () {
8080
return (new WebsocketsLogger($this->output))
81-
->enable(config('app.debug'))
81+
->enable($this->option('debug') ?: config('app.debug'))
8282
->verbose($this->output->isVerbose());
8383
});
8484

0 commit comments

Comments
 (0)