mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08:00
set the error level as default http error_log level
This commit is contained in:
parent
6019a7621b
commit
91cf00da17
@ -394,10 +394,6 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
|||||||
cycle->log = cycle->new_log;
|
cycle->log = cycle->new_log;
|
||||||
pool->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 */
|
/* create shared memory */
|
||||||
|
|
||||||
|
@ -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;
|
log->log_level = NGX_LOG_DEBUG_ALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user