move debug logging inside ngx_http_file_cache_free()
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index a7e5c46..133a52e 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -915,8 +915,8 @@
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 b04b615..e8d8773 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1725,9 +1725,6 @@
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 @@
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);