[PATCH 3 of 3] Proxy: logging levels tuned, double logging fixed

Maxim Dounin mdounin at mdounin.ru
Sun Sep 25 10:42:06 UTC 2011


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1316882053 -14400
# Node ID c8b8e7ee205ec2fe6481a29feb3149e2d6409b32
# Parent  4a179d089c41bb2e8dbc606e3db8064899907193
Proxy: logging levels tuned, double logging fixed.

diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1559,7 +1559,7 @@ ngx_http_proxy_copy_filter(ngx_event_pip
         r = p->input_ctx;
         p->upstream_done = 1;
 
-        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+        ngx_log_error(NGX_LOG_WARN, r->connection->log, 0,
                       "upstream sent too many data");
     }
 
@@ -1817,9 +1817,6 @@ done:
 
 invalid:
 
-    ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
-                  "upstream sent invalid chunked response");
-
     return NGX_ERROR;
 }
 
@@ -1933,7 +1930,7 @@ ngx_http_proxy_chunked_filter(ngx_event_
 
         /* invalid response */
 
-        ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
+        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                       "upstream sent invalid chunked response");
 
         return NGX_ERROR;
@@ -2089,7 +2086,7 @@ ngx_http_proxy_non_buffered_chunked_filt
 
         /* invalid response */
 
-        ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
+        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                       "upstream sent invalid chunked response");
 
         return NGX_ERROR;



More information about the nginx-devel mailing list