comparison src/http/modules/ngx_http_proxy_module.c @ 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 26c307b8dc3c
comparison
equal deleted inserted replaced
4144:7b77428909ed 4145:f321e9750c8c
1557 1557
1558 } else if (p->length < 0) { 1558 } else if (p->length < 0) {
1559 r = p->input_ctx; 1559 r = p->input_ctx;
1560 p->upstream_done = 1; 1560 p->upstream_done = 1;
1561 1561
1562 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 1562 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0,
1563 "upstream sent too many data"); 1563 "upstream sent too many data");
1564 } 1564 }
1565 1565
1566 return NGX_OK; 1566 return NGX_OK;
1567 } 1567 }
1815 1815
1816 return NGX_DONE; 1816 return NGX_DONE;
1817 1817
1818 invalid: 1818 invalid:
1819 1819
1820 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
1821 "upstream sent invalid chunked response");
1822
1823 return NGX_ERROR; 1820 return NGX_ERROR;
1824 } 1821 }
1825 1822
1826 1823
1827 static ngx_int_t 1824 static ngx_int_t
1931 break; 1928 break;
1932 } 1929 }
1933 1930
1934 /* invalid response */ 1931 /* invalid response */
1935 1932
1936 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, 1933 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
1937 "upstream sent invalid chunked response"); 1934 "upstream sent invalid chunked response");
1938 1935
1939 return NGX_ERROR; 1936 return NGX_ERROR;
1940 } 1937 }
1941 1938
2087 break; 2084 break;
2088 } 2085 }
2089 2086
2090 /* invalid response */ 2087 /* invalid response */
2091 2088
2092 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, 2089 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
2093 "upstream sent invalid chunked response"); 2090 "upstream sent invalid chunked response");
2094 2091
2095 return NGX_ERROR; 2092 return NGX_ERROR;
2096 } 2093 }
2097 2094