mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 13:59:00 +08:00
use %*s format
This commit is contained in:
parent
79d9a042a2
commit
d02661a96b
@ -669,17 +669,8 @@ ngx_resolver_expire(ngx_resolver_t *r, ngx_rbtree_t *tree, ngx_queue_t *queue)
|
||||
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);
|
||||
|
||||
@ -783,17 +774,9 @@ ngx_resolver_resend(ngx_resolver_t *r, ngx_rbtree_t *tree, ngx_queue_t *queue)
|
||||
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);
|
||||
|
||||
|
@ -880,16 +880,9 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
|
||||
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) {
|
||||
|
||||
|
@ -121,11 +121,8 @@ ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
||||
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;
|
||||
|
@ -521,10 +521,8 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
||||
*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;
|
||||
|
Loading…
Reference in New Issue
Block a user