Skip to content

Commit 2ac7452

Browse files
authored
Use constants instead of hard coding (#224)
1 parent 553ea01 commit 2ac7452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/StartSwooleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function defaultServerOptions(SwooleExtension $extension)
119119
'enable_coroutine' => false,
120120
'daemonize' => false,
121121
'log_file' => storage_path('logs/swoole_http.log'),
122-
'log_level' => app()->environment('local') ? 1 : 5,
122+
'log_level' => app()->environment('local') ? SWOOLE_LOG_INFO : SWOOLE_LOG_ERROR,
123123
'max_request' => $this->option('max-requests'),
124124
'package_max_length' => 20 * 1024 * 1024,
125125
'reactor_num' => $this->workerCount($extension),

0 commit comments

Comments
 (0)