comparison src/http/ngx_http.c @ 257:70e1c7d2b83d

nginx-0.0.2-2004-02-11-20:08:49 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Feb 2004 17:08:49 +0000
parents b6793bc5034b
children 87e73f067470
comparison
equal deleted inserted replaced
256:8e39cab6abd5 257:70e1c7d2b83d
587 ls->servers = &in_port[p]; 587 ls->servers = &in_port[p];
588 a++; 588 a++;
589 } 589 }
590 } 590 }
591 591
592 /* DEBUG STUFF */ 592 #if (NGX_DEBUG)
593 in_port = in_ports.elts; 593 in_port = in_ports.elts;
594 for (p = 0; p < in_ports.nelts; p++) { 594 for (p = 0; p < in_ports.nelts; p++) {
595 ngx_log_debug(cf->log, "port: %d %08x" _ in_port[p].port _ &in_port[p]); 595 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
596 "port: %d %08x", in_port[p].port, &in_port[p]);
596 in_addr = in_port[p].addrs.elts; 597 in_addr = in_port[p].addrs.elts;
597 for (a = 0; a < in_port[p].addrs.nelts; a++) { 598 for (a = 0; a < in_port[p].addrs.nelts; a++) {
598 char ip[20]; 599 char ip[20];
599 ngx_inet_ntop(AF_INET, (char *) &in_addr[a].addr, ip, 20); 600 ngx_inet_ntop(AF_INET, (char *) &in_addr[a].addr, ip, 20);
600 ngx_log_debug(cf->log, "%s %08x" _ ip _ in_addr[a].core_srv_conf); 601 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
602 "%s %08x", ip, in_addr[a].core_srv_conf);
601 s_name = in_addr[a].names.elts; 603 s_name = in_addr[a].names.elts;
602 for (n = 0; n < in_addr[a].names.nelts; n++) { 604 for (n = 0; n < in_addr[a].names.nelts; n++) {
603 ngx_log_debug(cf->log, "%s %08x" _ s_name[n].name.data _ 605 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
604 s_name[n].core_srv_conf); 606 "%s %08x", s_name[n].name.data,
607 s_name[n].core_srv_conf);
605 } 608 }
606 } 609 }
607 } 610 }
608 /**/ 611 #endif
609 612
610 return NGX_CONF_OK; 613 return NGX_CONF_OK;
611 } 614 }