From: Igor Sysoev Date: Thu, 27 May 2010 13:09:09 +0000 (+0000) Subject: improve debug logging: "try to use file/dir" X-Git-Tag: release-0.8.39~7 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=6e884ba19ae2efa6596a10f3a92e256f341c4372;p=nginx.git improve debug logging: "try to use file/dir" --- 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) {