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	Wed Feb 14 20:45:19 2007 +0000
+++ b/src/http/ngx_http_upstream.c	Thu Feb 15 10:00:59 2007 +0000
@@ -433,6 +433,9 @@
 
     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