aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-09 13:49:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-02-09 13:49:14 +0000
commitf15b839a8839577d19b9071c444bf1ce53ced656 (patch)
treea14182c797e587eaee9370fda58dd358666b4bd4 /src
parentf0b150faf8c951e7c791f2d19b63461f36438c3e (diff)
downloadnginx-f15b839a8839577d19b9071c444bf1ce53ced656.tar.gz
nginx-f15b839a8839577d19b9071c444bf1ce53ced656.zip
log a right subrequest
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index d5e6dd5e6..52860006b 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1784,6 +1784,7 @@ ngx_http_upstream_process_body(ngx_event_t *ev)
{
ngx_event_pipe_t *p;
ngx_connection_t *c, *downstream;
+ ngx_http_log_ctx_t *ctx;
ngx_http_request_t *r;
ngx_http_upstream_t *u;
@@ -1801,6 +1802,9 @@ ngx_http_upstream_process_body(ngx_event_t *ev)
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http upstream process upstream");
c->log->action = "reading upstream";
+
+ ctx = c->log->data;
+ ctx->current_request = r;
}
p = u->pipe;