[nginx] Cache: lock timeouts are now logged at info level.

Maxim Dounin mdounin at mdounin.ru
Fri Aug 23 18:20:07 UTC 2013


details:   http://hg.nginx.org/nginx/rev/654c1631dc86
branches:  
changeset: 5341:654c1631dc86
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Aug 23 22:18:54 2013 +0400
description:
Cache: lock timeouts are now logged at info level.

diffstat:

 src/http/ngx_http_file_cache.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -445,8 +445,7 @@ ngx_http_file_cache_lock_wait_handler(ng
     timer = c->wait_time - ngx_current_msec;
 
     if ((ngx_msec_int_t) timer <= 0) {
-        ngx_log_debug0(NGX_LOG_DEBUG_HTTP, ev->log, 0,
-                       "http file cache lock timeout");
+        ngx_log_error(NGX_LOG_INFO, ev->log, 0, "cache lock timeout");
         c->lock = 0;
         goto wakeup;
     }



More information about the nginx-devel mailing list