diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2013-05-21 17:30:19 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2013-05-21 17:30:19 +0400 |
commit | 8ef3374a5abbeaf40a1f5d8296348518151dba10 (patch) | |
tree | e22bbc17a5c904eef9daeb921416d7a7a94f388c /src | |
parent | 76c1d58a46664ecdcf22bb545831632ad3bffc89 (diff) | |
download | nginx-8ef3374a5abbeaf40a1f5d8296348518151dba10.tar.gz nginx-8ef3374a5abbeaf40a1f5d8296348518151dba10.zip |
Fixed error logging.
The provided argument list didn't follow a used format string.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_autoindex_module.c | 2 | ||||
-rw-r--r-- | src/http/ngx_http_postpone_filter_module.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index fb46d65d1..e3dcfd07e 100644 --- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -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); diff --git a/src/http/ngx_http_postpone_filter_module.c b/src/http/ngx_http_postpone_filter_module.c index 85c4b84d0..e893b8364 100644 --- a/src/http/ngx_http_postpone_filter_module.c +++ b/src/http/ngx_http_postpone_filter_module.c @@ -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, |