mirror of
https://github.com/nginx/nginx.git
synced 2026-10-26 15:20:05 -05:00
set the error level as default http error_log level
This commit is contained in:
1 parent
6019a7621b
commit
91cf00da17
2 files changed
+4
-5
No files matched your search
@@ -394,10 +394,6 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
||||
cycle->log = cycle->new_log;
|
||||
pool->log = cycle->new_log;
|
||||
|
||||
if (cycle->log->log_level == 0) {
|
||||
cycle->log->log_level = NGX_LOG_ERR;
|
||||
}
|
||||
|
||||
|
||||
/* create shared memory */
|
||||
|
||||
|
||||
+4
-1
@@ -302,7 +302,10 @@ ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log)
|
||||
}
|
||||
}
|
||||
|
||||
if (log->log_level == NGX_LOG_DEBUG) {
|
||||
if (log->log_level == 0) {
|
||||
log->log_level = NGX_LOG_ERR;
|
||||
|
||||
} else if (log->log_level == NGX_LOG_DEBUG) {
|
||||
log->log_level = NGX_LOG_DEBUG_ALL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user