Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-30 19:32:57 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-06-30 19:32:57 +0400
commit504efffca833a0c4a66787d4440ead6254e49066 (patch)
treeb71ef669e0c551d03f550024c779bf0ed424cd13 /src
parent4cb276ae216b0ae3d4d19fa16cf2f4bde51c0c0a (diff)
fix error message
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_log_module.c3
-rw-r--r--src/http/ngx_http_request.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
index b2a23dd70..f4eefdeaf 100644
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -422,7 +422,8 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
{
ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
ngx_open_file_n " \"%s\" failed", log.data);
- return -1;
+ /* simulate successfull logging */
+ return len;
}
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index d707e33be..8dc562f28 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2623,6 +2623,8 @@ ngx_http_request_done(ngx_http_request_t *r, ngx_int_t error)
r->headers_out.status = error;
}
+ log->action = "logging request";
+
cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
log_handler = cmcf->phases[NGX_HTTP_LOG_PHASE].handlers.elts;
@@ -2631,6 +2633,8 @@ ngx_http_request_done(ngx_http_request_t *r, ngx_int_t error)
log_handler[i](r);
}
+ log->action = "closing request";
+
if (r->connection->timedout) {
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);