changeset 1109:1402dbb554c4

add debug logging
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Feb 2007 10:00:59 +0000
parents 109e8c7d7cc1
children 82da2c898923
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -433,6 +433,9 @@ ngx_http_upstream_check_broken_connectio
 
     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