Skip to content

Commit dbe481b

Browse files
Only logs "swoole" errors in production (#215)
* Only logs errors in production * Update StartSwooleCommand.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent d15abd2 commit dbe481b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Commands/StartSwooleCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ protected function defaultServerOptions(SwooleExtension $extension)
113113
'enable_coroutine' => false,
114114
'daemonize' => false,
115115
'log_file' => storage_path('logs/swoole_http.log'),
116+
'log_level' => app()->environment('local') ? 1 : 5,
116117
'max_request' => $this->option('max-requests'),
117118
'package_max_length' => 20 * 1024 * 1024,
118119
'reactor_num' => $this->workerCount($extension),

0 commit comments

Comments
 (0)