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 55d7c2d..aa0d9ce 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -168,7 +168,6 @@
return NULL;
}
- cycle->new_log->log_level = NGX_LOG_ERR;
cycle->new_log->file->name = error_log;
@@ -395,6 +394,10 @@
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 */