comparison src/core/ngx_log.c @ 2644:2682d042328d stable-0.6

r2447, r2466, r2467 merge: set the error level as default http error_log level
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 16:19:22 +0000
parents a3f062177dba
children a6d6d762c554 967ad993a4f8
comparison
equal deleted inserted replaced
2643:002f6fd88177 2644:2682d042328d
300 "invalid log level \"%s\"", value[i].data); 300 "invalid log level \"%s\"", value[i].data);
301 return NGX_CONF_ERROR; 301 return NGX_CONF_ERROR;
302 } 302 }
303 } 303 }
304 304
305 if (log->log_level == NGX_LOG_DEBUG) { 305 if (log->log_level == 0) {
306 log->log_level = NGX_LOG_ERR;
307
308 } else if (log->log_level == NGX_LOG_DEBUG) {
306 log->log_level = NGX_LOG_DEBUG_ALL; 309 log->log_level = NGX_LOG_DEBUG_ALL;
307 } 310 }
308 311
309 return NGX_CONF_OK; 312 return NGX_CONF_OK;
310 } 313 }