From: Igor Sysoev Date: Mon, 26 Jan 2009 14:31:49 +0000 (+0000) Subject: revert the previous commit and r2447 change in src/core/ngx_cycle.c X-Git-Tag: release-0.7.32~3 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=9aa30bc51ef9df4b31e6f9977c0be8fb826b0b0f;p=nginx.git 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 index 55d7c2d48..aa0d9ce7e 100644 --- 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 */