diff src/core/ngx_cycle.c @ 2466:550ab350c306

revert the previous commit and r2447 change in src/core/ngx_cycle.c
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Jan 2009 14:31:49 +0000
parents 3882ced159b6
children 2e91aecb9e57
line wrap: on
line diff
--- 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 */