Fixed error logging.

The provided argument list didn't follow a used format string.
This commit is contained in:
Sergey Kandaurov 2013-05-21 17:30:19 +04:00
parent 76c1d58a46
commit 8ef3374a5a
2 changed files with 3 additions and 5 deletions

View File

@ -357,7 +357,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
if (ngx_close_dir(&dir) == NGX_ERROR) { if (ngx_close_dir(&dir) == NGX_ERROR) {
ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno, 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); escape_html = ngx_escape_html(NULL, r->uri.data, r->uri.len);

View File

@ -70,8 +70,7 @@ ngx_http_postpone_filter(ngx_http_request_t *r, ngx_chain_t *in)
#if 0 #if 0
/* TODO: SSI may pass NULL */ /* TODO: SSI may pass NULL */
ngx_log_error(NGX_LOG_ALERT, c->log, 0, ngx_log_error(NGX_LOG_ALERT, c->log, 0,
"http postpone filter NULL inactive request", "http postpone filter NULL inactive request");
&r->uri, &r->args);
#endif #endif
return NGX_OK; return NGX_OK;
@ -108,8 +107,7 @@ ngx_http_postpone_filter(ngx_http_request_t *r, ngx_chain_t *in)
if (pr->out == NULL) { if (pr->out == NULL) {
ngx_log_error(NGX_LOG_ALERT, c->log, 0, ngx_log_error(NGX_LOG_ALERT, c->log, 0,
"http postpone filter NULL output", "http postpone filter NULL output");
&r->uri, &r->args);
} else { } else {
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,