aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 0a6fddbdb..e72dafff6 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -972,7 +972,9 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
u->output.sendfile = c->sendfile;
c->pool = r->pool;
- c->read->log = c->write->log = c->log = r->connection->log;
+ c->log = r->connection->log;
+ c->read->log = c->log;
+ c->write->log = c->log;
/* init or reinit the ngx_output_chain() and ngx_chain_writer() contexts */