comparison src/core/ngx_log.c @ 209:e1c815be05ae

nginx-0.0.1-2003-12-09-18:08:11 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Dec 2003 15:08:11 +0000
parents 0b67be7d4489
children 00cafae0bdf1
comparison
equal deleted inserted replaced
208:0b67be7d4489 209:e1c815be05ae
321 continue; 321 continue;
322 } 322 }
323 } 323 }
324 324
325 d = NGX_LOG_DEBUG_FIRST; 325 d = NGX_LOG_DEBUG_FIRST;
326 for (n = 0; n < /* STUB */ 3; n++) { 326 for (n = 0; n < /* STUB */ 4; n++) {
327 if (ngx_strcmp(value[i].data, debug_levels[n]) == 0) { 327 if (ngx_strcmp(value[i].data, debug_levels[n]) == 0) {
328 if (cf->cycle->log->log_level & ~NGX_LOG_DEBUG_ALL) { 328 if (cf->cycle->log->log_level & ~NGX_LOG_DEBUG_ALL) {
329 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 329 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
330 "invalid log level \"%s\"", 330 "invalid log level \"%s\"",
331 value[i].data); 331 value[i].data);
332 return NGX_CONF_ERROR; 332 return NGX_CONF_ERROR;
333 } 333 }
334 334
335 cf->cycle->log->log_level |= d; 335 cf->cycle->log->log_level |= d;
336 d <<= 1;
337 continue;
338 } 336 }
337
338 d <<= 1;
339 } 339 }
340 340
341 341
342 if (cf->cycle->log->log_level == 0) { 342 if (cf->cycle->log->log_level == 0) {
343 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 343 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,