diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-10-31 04:12:53 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-10-31 04:12:53 +0400 |
commit | eea2e1262b204c75996ba38f4d0fd9d8f9930948 (patch) | |
tree | e485d369d7bf59e37e84ec43d9a63bd20058ef5a | |
parent | f1a9f14afe0d6ee9c37e335cd1d7bff000ada451 (diff) | |
download | nginx-eea2e1262b204c75996ba38f4d0fd9d8f9930948.tar.gz nginx-eea2e1262b204c75996ba38f4d0fd9d8f9930948.zip |
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.
-rw-r--r-- | src/http/modules/ngx_http_gunzip_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |