]> git.kaiwu.me - nginx.git/commitdiff
Fixed error logging.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 21 May 2013 13:30:19 +0000 (17:30 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 21 May 2013 13:30:19 +0000 (17:30 +0400)
The provided argument list didn't follow a used format string.

src/http/modules/ngx_http_autoindex_module.c
src/http/ngx_http_postpone_filter_module.c

index fb46d65d1cf06c84be11a2526f5403836eedac57..e3dcfd07e3bbc8183ac247b9865f6befcffa66a2 100644 (file)
@@ -357,7 +357,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
 
     if (ngx_close_dir(&dir) == NGX_ERROR) {
         ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
-                      ngx_close_dir_n " \"%s\" failed", &path);
+                      ngx_close_dir_n " \"%V\" failed", &path);
     }
 
     escape_html = ngx_escape_html(NULL, r->uri.data, r->uri.len);
index 85c4b84d027200c68d0014634f7efbf0a0bcfd00..e893b8364886e2418dbc4d59beefb7e7ec19f600 100644 (file)
@@ -70,8 +70,7 @@ ngx_http_postpone_filter(ngx_http_request_t *r, ngx_chain_t *in)
 #if 0
         /* TODO: SSI may pass NULL */
         ngx_log_error(NGX_LOG_ALERT, c->log, 0,
-                      "http postpone filter NULL inactive request",
-                      &r->uri, &r->args);
+                      "http postpone filter NULL inactive request");
 #endif
 
         return NGX_OK;
@@ -108,8 +107,7 @@ ngx_http_postpone_filter(ngx_http_request_t *r, ngx_chain_t *in)
 
         if (pr->out == NULL) {
             ngx_log_error(NGX_LOG_ALERT, c->log, 0,
-                          "http postpone filter NULL output",
-                          &r->uri, &r->args);
+                          "http postpone filter NULL output");
 
         } else {
             ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,