comparison src/http/ngx_http_upstream.c @ 1098:aed9dfe2a4f2

log a right subrequest
author Igor Sysoev <igor@sysoev.ru>
date Fri, 09 Feb 2007 13:49:14 +0000
parents 7c84c877f2d7
children db7c468c447d
comparison
equal deleted inserted replaced
1097:df8cdf626c87 1098:aed9dfe2a4f2
1782 static void 1782 static void
1783 ngx_http_upstream_process_body(ngx_event_t *ev) 1783 ngx_http_upstream_process_body(ngx_event_t *ev)
1784 { 1784 {
1785 ngx_event_pipe_t *p; 1785 ngx_event_pipe_t *p;
1786 ngx_connection_t *c, *downstream; 1786 ngx_connection_t *c, *downstream;
1787 ngx_http_log_ctx_t *ctx;
1787 ngx_http_request_t *r; 1788 ngx_http_request_t *r;
1788 ngx_http_upstream_t *u; 1789 ngx_http_upstream_t *u;
1789 1790
1790 c = ev->data; 1791 c = ev->data;
1791 r = c->data; 1792 r = c->data;
1799 1800
1800 } else { 1801 } else {
1801 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, 1802 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
1802 "http upstream process upstream"); 1803 "http upstream process upstream");
1803 c->log->action = "reading upstream"; 1804 c->log->action = "reading upstream";
1805
1806 ctx = c->log->data;
1807 ctx->current_request = r;
1804 } 1808 }
1805 1809
1806 p = u->pipe; 1810 p = u->pipe;
1807 1811
1808 if (ev->timedout) { 1812 if (ev->timedout) {