comparison src/http/ngx_http_core_module.c @ 307:ce375c313e96

nginx-0.0.3-2004-04-08-19:58:25 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 08 Apr 2004 15:58:25 +0000
parents 00c5660d2707
children 56496082668b
comparison
equal deleted inserted replaced
306:6b91bfbc4123 307:ce375c313e96
480 480
481 if (rc == 0) { 481 if (rc == 0) {
482 r->loc_conf = clcfp[i]->loc_conf; 482 r->loc_conf = clcfp[i]->loc_conf;
483 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 483 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
484 r->connection->log->file = clcf->err_log->file; 484 r->connection->log->file = clcf->err_log->file;
485 r->connection->log->log_level = clcf->err_log->log_level; 485 if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
486 r->connection->log->log_level = clcf->err_log->log_level;
487 }
486 488
487 if (clcfp[i]->exact_match && r->uri.len == clcfp[i]->name.len) { 489 if (clcfp[i]->exact_match && r->uri.len == clcfp[i]->name.len) {
488 #if (HAVE_PCRE) 490 #if (HAVE_PCRE)
489 exact = 1; 491 exact = 1;
490 #endif 492 #endif
527 /* match */ 529 /* match */
528 530
529 r->loc_conf = clcfp[i]->loc_conf; 531 r->loc_conf = clcfp[i]->loc_conf;
530 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 532 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
531 r->connection->log->file = clcf->err_log->file; 533 r->connection->log->file = clcf->err_log->file;
532 r->connection->log->log_level = clcf->err_log->log_level; 534 if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
535 r->connection->log->log_level = clcf->err_log->log_level;
536 }
533 537
534 break; 538 break;
535 } 539 }
536 } 540 }
537 541