return;
}
-#if (NGX_DEBUG)
- {
- ngx_str_t s;
-
- s.len = rn->nlen;
- s.data = rn->name;
-
- ngx_log_debug1(NGX_LOG_DEBUG_CORE, r->log, 0,
- "resolver expire \"%V\"", &s);
- }
-#endif
+ ngx_log_debug2(NGX_LOG_DEBUG_CORE, r->log, 0,
+ "resolver expire \"%*s\"", (size_t) rn->nlen, rn->name);
ngx_queue_remove(q);
return rn->expire - now;
}
-#if (NGX_DEBUG)
- {
- ngx_str_t s;
-
- s.len = rn->nlen;
- s.data = rn->name;
-
- ngx_log_debug2(NGX_LOG_DEBUG_CORE, r->log, 0,
- "resolver resend \"%V\" %p", &s, rn->waiting);
- }
-#endif
+ ngx_log_debug3(NGX_LOG_DEBUG_CORE, r->log, 0,
+ "resolver resend \"%*s\" %p",
+ (size_t) rn->nlen, rn->name, rn->waiting);
ngx_queue_remove(q);
b->last = e.pos;
}
-#if (NGX_DEBUG)
- {
- ngx_str_t s;
-
- s.len = b->last - b->pos;
- s.data = b->pos;
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "http proxy header:\n\"%V\"", &s);
- }
-#endif
+ ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "http proxy header:\n\"%*s\"",
+ (size_t) (b->last - b->pos), b->pos);
if (plcf->body_set == NULL && plcf->upstream.pass_request_body) {
r->out = ctx->in;
}
-#if (NGX_DEBUG)
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args);
-#endif
-
}
return rc;
*b->last++ = CR; *b->last++ = LF;
}
-#if (NGX_DEBUG)
- *b->last = '\0';
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "%s\n", b->pos);
-#endif
+ ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "%*s\n", (size_t) (b->last - b->pos), b->pos);
/* the end of HTTP header */
*b->last++ = CR; *b->last++ = LF;