From 9aa30bc51ef9df4b31e6f9977c0be8fb826b0b0f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 26 Jan 2009 14:31:49 +0000 Subject: [PATCH] revert the previous commit and r2447 change in src/core/ngx_cycle.c --- src/core/ngx_cycle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */