Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_gunzip_filter_module.c @ 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 | c52a761a2029 |
children | 6aa75f4982ce |
comparison
equal
deleted
inserted
replaced
5434:c21e341c51cb | 5435:2bb2571d6e34 |
---|---|
420 ctx->flush, ctx->redo); | 420 ctx->flush, ctx->redo); |
421 | 421 |
422 rc = inflate(&ctx->zstream, ctx->flush); | 422 rc = inflate(&ctx->zstream, ctx->flush); |
423 | 423 |
424 if (rc != Z_OK && rc != Z_STREAM_END && rc != Z_BUF_ERROR) { | 424 if (rc != Z_OK && rc != Z_STREAM_END && rc != Z_BUF_ERROR) { |
425 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | 425 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
426 "inflate() failed: %d, %d", ctx->flush, rc); | 426 "inflate() failed: %d, %d", ctx->flush, rc); |
427 return NGX_ERROR; | 427 return NGX_ERROR; |
428 } | 428 } |
429 | 429 |
430 ngx_log_debug5(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 430 ngx_log_debug5(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |