mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08:00
revert the previous commit and r2447 change in src/core/ngx_cycle.c
This commit is contained in:
parent
71f729c78c
commit
9aa30bc51e
@ -168,7 +168,6 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
cycle->new_log->log_level = NGX_LOG_ERR;
|
||||
cycle->new_log->file->name = error_log;
|
||||
|
||||
|
||||
@ -395,6 +394,10 @@ 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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user