]> git.kaiwu.me - nginx.git/commitdiff
add debug logging
authorIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 10:00:59 +0000 (10:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 10:00:59 +0000 (10:00 +0000)
src/http/ngx_http_upstream.c

index 79d372c131bf8a487085f20c1ecb55cca32aa13a..6f548a3975bd1ec48d84d96b40e562ea8822ae18 100644 (file)
@@ -433,6 +433,9 @@ ngx_http_upstream_check_broken_connection(ngx_http_request_t *r,
 
     err = ngx_socket_errno;
 
+    ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ev->log, err,
+                   "http upstream recv(): %d", n);
+
     /*
      * we do not need to disable the write event because
      * that event has NGX_USE_CLEAR_EVENT type