changeset 5435:2bb2571d6e34

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 31 Oct 2013 04:12:53 +0400
parents c21e341c51cb
children 6aa75f4982ce
files src/http/modules/ngx_http_gunzip_filter_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_
     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;
     }