# HG changeset patch # User Igor Sysoev # Date 1190575410 0 # Node ID 4699bab788c03e79fc69e51b47abc9cc338d9c28 # Parent 95e76183ec4f760415306de258b6e64d87dc611b r1470 merge: connection error should be logged with "connecting to upstream" action, the bug was introduced in r1154 diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1288,6 +1288,7 @@ ngx_http_upstream_test_connect(ngx_conne if (ngx_event_flags & NGX_USE_KQUEUE_EVENT) { if (c->write->pending_eof) { + c->log->action = "connecting to upstream"; (void) ngx_connection_error(c, c->write->kq_errno, "kevent() reported that connect() failed"); return NGX_ERROR; @@ -1311,6 +1312,7 @@ ngx_http_upstream_test_connect(ngx_conne } if (err) { + c->log->action = "connecting to upstream"; (void) ngx_connection_error(c, err, "connect() failed"); return NGX_ERROR; }