comparison src/core/ngx_cycle.c @ 2465:3882ced159b6

default error_log has zero level, the bug has been introduced in r2447
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Jan 2009 14:11:09 +0000
parents 6fd7d9c3218d
children 550ab350c306
comparison
equal deleted inserted replaced
2464:ae3bfe9aa093 2465:3882ced159b6
166 if (cycle->new_log == NULL) { 166 if (cycle->new_log == NULL) {
167 ngx_destroy_pool(pool); 167 ngx_destroy_pool(pool);
168 return NULL; 168 return NULL;
169 } 169 }
170 170
171 cycle->new_log->log_level = NGX_LOG_ERR;
171 cycle->new_log->file->name = error_log; 172 cycle->new_log->file->name = error_log;
172 173
173 174
174 n = old_cycle->listening.nelts ? old_cycle->listening.nelts : 10; 175 n = old_cycle->listening.nelts ? old_cycle->listening.nelts : 10;
175 176