]> git.kaiwu.me - nginx.git/commitdiff
log a right subrequest
authorIgor Sysoev <igor@sysoev.ru>
Fri, 9 Feb 2007 13:49:14 +0000 (13:49 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 9 Feb 2007 13:49:14 +0000 (13:49 +0000)
src/http/ngx_http_upstream.c

index d5e6dd5e653fa39fb785e58f32da48667e1c082f..52860006bd98129243255e86e34179745c787af2 100644 (file)
@@ -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;