diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index a7e5c464e..133a52e68 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -915,8 +915,8 @@ ngx_http_file_cache_free(ngx_http_cache_t *c, ngx_temp_file_t *tf) cache = c->file_cache; - ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0, - "http file cache free"); + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->file.log, 0, + "http file cache free, fd: %d", c->file.fd); ngx_shmtx_lock(&cache->shpool->mutex); diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index b04b61595..e8d87738f 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1725,9 +1725,6 @@ ngx_http_upstream_intercept_errors(ngx_http_request_t *r, if (r->cache) { time_t valid; - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http upstream cache fd: %d", r->cache->file.fd); - valid = ngx_http_file_cache_valid(u->conf->cache_valid, status); if (valid) { @@ -2992,9 +2989,6 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r, if (u->cacheable && r->cache) { time_t valid; - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http upstream cache fd: %d", r->cache->file.fd); - if (rc == NGX_HTTP_BAD_GATEWAY || rc == NGX_HTTP_GATEWAY_TIME_OUT) { valid = ngx_http_file_cache_valid(u->conf->cache_valid, rc);