comparison src/http/ngx_http_core_module.c @ 3531:beca01195937

improve debug logging: "try to use file/dir"
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 May 2010 13:09:09 +0000
parents 84905c7b2aa7
children a8966b3c1fcf
comparison
equal deleted inserted replaced
3530:57f06b0b749f 3531:beca01195937
1221 test_dir = tf->test_dir; 1221 test_dir = tf->test_dir;
1222 1222
1223 tf++; 1223 tf++;
1224 1224
1225 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1225 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1226 "try to use file: \"%s\" \"%s\"", name, path.data); 1226 "try to use %s: \"%s\" \"%s\"",
1227 test_dir ? "dir" : "file", name, path.data);
1227 1228
1228 if (tf->lengths == NULL && tf->name.len == 0) { 1229 if (tf->lengths == NULL && tf->name.len == 0) {
1229 1230
1230 if (tf->code) { 1231 if (tf->code) {
1231 ngx_http_finalize_request(r, tf->code); 1232 ngx_http_finalize_request(r, tf->code);