From: Maxim Dounin Date: Thu, 31 Oct 2013 00:12:53 +0000 (+0400) Subject: Gunzip: "error" logging level on inflate() errors. X-Git-Tag: release-1.5.7~8 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=eea2e1262b204c75996ba38f4d0fd9d8f9930948;p=nginx.git 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. --- diff --git a/src/http/modules/ngx_http_gunzip_filter_module.c b/src/http/modules/ngx_http_gunzip_filter_module.c index c2d504e0d..9a1ce41a5 100644 --- a/src/http/modules/ngx_http_gunzip_filter_module.c +++ b/src/http/modules/ngx_http_gunzip_filter_module.c @@ -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; }