diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-09 18:43:16 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-09 18:43:16 +0000 |
commit | 9e4b7276f98bc8d8d5b9545d413509de1fb247d3 (patch) | |
tree | 417c02e6e6520c2fb9704e21ebc457fe0bfd8426 | |
parent | 3dea919675f032b04360c934266585d53e3ba114 (diff) | |
download | nginx-9e4b7276f98bc8d8d5b9545d413509de1fb247d3.tar.gz nginx-9e4b7276f98bc8d8d5b9545d413509de1fb247d3.zip |
connection error should be logged with "connecting to upstream" action,
the bug was introduced in r1154
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 650c84c6e..ae5f3d3e8 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1290,6 +1290,7 @@ ngx_http_upstream_test_connect(ngx_connection_t *c) 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; @@ -1313,6 +1314,7 @@ ngx_http_upstream_test_connect(ngx_connection_t *c) } if (err) { + c->log->action = "connecting to upstream"; (void) ngx_connection_error(c, err, "connect() failed"); return NGX_ERROR; } |