Mercurial > hg > nginx
changeset 4145:f321e9750c8c
Proxy: logging levels tuned, double logging fixed.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 25 Sep 2011 20:04:20 +0000 |
parents | 7b77428909ed |
children | 55acacac22df |
files | src/http/modules/ngx_http_proxy_module.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;