]> git.kaiwu.me - nginx.git/commitdiff
improve debug logging: "try to use file/dir"
authorIgor Sysoev <igor@sysoev.ru>
Thu, 27 May 2010 13:09:09 +0000 (13:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 27 May 2010 13:09:09 +0000 (13:09 +0000)
src/http/ngx_http_core_module.c

index 21ea7e9d2aacc53425c0c206cbc9b8fd85a85aba..3b4e5d22eaf6b03e73bedd9cf80f1a50c1a1a218 100644 (file)
@@ -1223,7 +1223,8 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
         tf++;
 
         ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                       "try to use file: \"%s\" \"%s\"", name, path.data);
+                       "try to use %s: \"%s\" \"%s\"",
+                       test_dir ? "dir" : "file", name, path.data);
 
         if (tf->lengths == NULL && tf->name.len == 0) {