]> git.kaiwu.me - nginx.git/commitdiff
Gunzip: "error" logging level on inflate() errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Oct 2013 00:12:53 +0000 (04:12 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Oct 2013 00:12:53 +0000 (04:12 +0400)
Errors can easily happen due to broken upstream responses, there is no
need to log them at "alert" level.

src/http/modules/ngx_http_gunzip_filter_module.c

index c2d504e0d8d38cbc3ff7c9f9a45950ecf9cb3a45..9a1ce41a5dd6eb59c22f73c269b925aa460a9cab 100644 (file)
@@ -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;
     }