# HG changeset patch # User Igor Sysoev # Date 1232980309 0 # Node ID 550ab350c306e55b27281d13e244413a26a8b4d2 # Parent 3882ced159b682f810e30f753c0d4397f6a417a4 revert the previous commit and r2447 change in src/core/ngx_cycle.c diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -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 */