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:
Maxim Dounin 2013-10-31 04:12:53 +04:00
parent f1a9f14afe
commit eea2e1262b

View File

@ -422,7 +422,7 @@ ngx_http_gunzip_filter_inflate(ngx_http_request_t *r,
rc = inflate(&ctx->zstream, ctx->flush); rc = inflate(&ctx->zstream, ctx->flush);
if (rc != Z_OK && rc != Z_STREAM_END && rc != Z_BUF_ERROR) { 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); "inflate() failed: %d, %d", ctx->flush, rc);
return NGX_ERROR; return NGX_ERROR;
} }