mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
Gunzip: "error" logging level on inflate() errors.
Errors can easily happen due to broken upstream responses, there is no need to log them at "alert" level.
This commit is contained in:
parent
f1a9f14afe
commit
eea2e1262b
@ -422,7 +422,7 @@ ngx_http_gunzip_filter_inflate(ngx_http_request_t *r,
|
||||
rc = inflate(&ctx->zstream, ctx->flush);
|
||||
|
||||
if (rc != Z_OK && rc != Z_STREAM_END && rc != Z_BUF_ERROR) {
|
||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"inflate() failed: %d, %d", ctx->flush, rc);
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user