]> git.kaiwu.me - nginx.git/commitdiff
move debug logging inside ngx_http_file_cache_free()
authorIgor Sysoev <igor@sysoev.ru>
Wed, 28 Jul 2010 15:56:56 +0000 (15:56 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 28 Jul 2010 15:56:56 +0000 (15:56 +0000)
src/http/ngx_http_file_cache.c
src/http/ngx_http_upstream.c

index a7e5c464ecbc6ca9e783e1a1800de43bda7599cf..133a52e680207986eae18b5bbd9cf257dae200b1 100644 (file)
@@ -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);
 
index b04b61595364a06b99eb8101b193f76f70a5d391..e8d87738fdd8c1d0589413d23ee7d412c5e8f881 100644 (file)
@@ -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);