Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed error logging.

Sergey Kandaurov
May 21, 2013 09:36AM
details: http://hg.nginx.org/nginx/rev/f026adb935ad
branches:
changeset: 5218:f026adb935ad
user: Sergey Kandaurov <pluknet@nginx.com>
date: Tue May 21 17:30:19 2013 +0400
description:
Fixed error logging.

The provided argument list didn't follow a used format string.

diffstat:

src/http/modules/ngx_http_autoindex_module.c | 2 +-
src/http/ngx_http_postpone_filter_module.c | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r ddba4e308ecc -r f026adb935ad src/http/modules/ngx_http_autoindex_module.c
--- a/src/http/modules/ngx_http_autoindex_module.c Tue May 21 12:54:27 2013 +0400
+++ b/src/http/modules/ngx_http_autoindex_module.c Tue May 21 17:30:19 2013 +0400
@@ -357,7 +357,7 @@ ngx_http_autoindex_handler(ngx_http_requ

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 -r ddba4e308ecc -r f026adb935ad src/http/ngx_http_postpone_filter_module.c
--- a/src/http/ngx_http_postpone_filter_module.c Tue May 21 12:54:27 2013 +0400
+++ b/src/http/ngx_http_postpone_filter_module.c Tue May 21 17:30:19 2013 +0400
@@ -70,8 +70,7 @@ ngx_http_postpone_filter(ngx_http_reques
#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_reques

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,

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed error logging.

Sergey Kandaurov 751 May 21, 2013 09:36AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready