# HG changeset patch # User Igor Sysoev # Date 1189363396 0 # Node ID 0a269c464eafe70d8b00a21ba56434ab83dd3f55 # Parent 491e5059ea19f7bc8d86c8c6ccd287572a654540 connection error should be logged with "connecting to upstream" action, the bug was introduced in r1154 diff -r 491e5059ea19 -r 0a269c464eaf src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c Sun Sep 09 18:32:53 2007 +0000 +++ b/src/http/ngx_http_upstream.c Sun Sep 09 18:43:16 2007 +0000 @@ -1290,6 +1290,7 @@ 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 @@ } if (err) { + c->log->action = "connecting to upstream"; (void) ngx_connection_error(c, err, "connect() failed"); return NGX_ERROR; }