Klaus Demo nginx / d02661a
use %*s format Igor Sysoev 11 years ago
4 changed file(s) with 10 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
668668 return;
669669 }
670670
671 #if (NGX_DEBUG)
672 {
673 ngx_str_t s;
674
675 s.len = rn->nlen;
676 s.data = rn->name;
677
678 ngx_log_debug1(NGX_LOG_DEBUG_CORE, r->log, 0,
679 "resolver expire \"%V\"", &s);
680 }
681 #endif
671 ngx_log_debug2(NGX_LOG_DEBUG_CORE, r->log, 0,
672 "resolver expire \"%*s\"", (size_t) rn->nlen, rn->name);
682673
683674 ngx_queue_remove(q);
684675
782773 return rn->expire - now;
783774 }
784775
785 #if (NGX_DEBUG)
786 {
787 ngx_str_t s;
788
789 s.len = rn->nlen;
790 s.data = rn->name;
791
792 ngx_log_debug2(NGX_LOG_DEBUG_CORE, r->log, 0,
793 "resolver resend \"%V\" %p", &s, rn->waiting);
794 }
795 #endif
776 ngx_log_debug3(NGX_LOG_DEBUG_CORE, r->log, 0,
777 "resolver resend \"%*s\" %p",
778 (size_t) rn->nlen, rn->name, rn->waiting);
796779
797780 ngx_queue_remove(q);
798781
879879 b->last = e.pos;
880880 }
881881
882 #if (NGX_DEBUG)
883 {
884 ngx_str_t s;
885
886 s.len = b->last - b->pos;
887 s.data = b->pos;
888 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
889 "http proxy header:\n\"%V\"", &s);
890 }
891 #endif
882 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
883 "http proxy header:\n\"%*s\"",
884 (size_t) (b->last - b->pos), b->pos);
892885
893886 if (plcf->body_set == NULL && plcf->upstream.pass_request_body) {
894887
120120 r->out = ctx->in;
121121 }
122122
123 #if (NGX_DEBUG)
124123 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
125124 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args);
126 #endif
127
128125 }
129126
130127 return rc;
520520 *b->last++ = CR; *b->last++ = LF;
521521 }
522522
523 #if (NGX_DEBUG)
524 *b->last = '\0';
525 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "%s\n", b->pos);
526 #endif
523 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
524 "%*s\n", (size_t) (b->last - b->pos), b->pos);
527525
528526 /* the end of HTTP header */
529527 *b->last++ = CR; *b->last++ = LF;