aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-27 13:09:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-27 13:09:09 +0000
commit6e884ba19ae2efa6596a10f3a92e256f341c4372 (patch)
treea96a58914e8605cbb945314922ee7617e12e24d1 /src/http/ngx_http_core_module.c
parent9434ae59e8ced8018f48170402f9d80f4c1a68d0 (diff)
downloadnginx-6e884ba19ae2efa6596a10f3a92e256f341c4372.tar.gz
nginx-6e884ba19ae2efa6596a10f3a92e256f341c4372.zip
improve debug logging: "try to use file/dir"
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 21ea7e9d2..3b4e5d22e 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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) {