mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Proxy: logging levels tuned, double logging fixed.
This commit is contained in:
parent
aa12f3c7f3
commit
5c56f20ae7
@ -1559,7 +1559,7 @@ ngx_http_proxy_copy_filter(ngx_event_pipe_t *p, ngx_buf_t *buf)
|
|||||||
r = p->input_ctx;
|
r = p->input_ctx;
|
||||||
p->upstream_done = 1;
|
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");
|
"upstream sent too many data");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1817,9 +1817,6 @@ done:
|
|||||||
|
|
||||||
invalid:
|
invalid:
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
|
||||||
"upstream sent invalid chunked response");
|
|
||||||
|
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1933,7 +1930,7 @@ ngx_http_proxy_chunked_filter(ngx_event_pipe_t *p, ngx_buf_t *buf)
|
|||||||
|
|
||||||
/* invalid response */
|
/* 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");
|
"upstream sent invalid chunked response");
|
||||||
|
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
@ -2089,7 +2086,7 @@ ngx_http_proxy_non_buffered_chunked_filter(void *data, ssize_t bytes)
|
|||||||
|
|
||||||
/* invalid response */
|
/* 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");
|
"upstream sent invalid chunked response");
|
||||||
|
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user