# HG changeset patch # User Igor Sysoev # Date 1214839977 0 # Node ID 479440385e35d7072594bd297b5d9cc797d283bd # Parent 5771776acf3ca73fa3ca274b4f47eb639751781d fix error message diff -r 5771776acf3c -r 479440385e35 src/http/modules/ngx_http_log_module.c --- a/src/http/modules/ngx_http_log_module.c Mon Jun 30 12:46:40 2008 +0000 +++ b/src/http/modules/ngx_http_log_module.c Mon Jun 30 15:32:57 2008 +0000 @@ -422,7 +422,8 @@ { 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 -r 5771776acf3c -r 479440385e35 src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c Mon Jun 30 12:46:40 2008 +0000 +++ b/src/http/ngx_http_request.c Mon Jun 30 15:32:57 2008 +0000 @@ -2623,6 +2623,8 @@ 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 @@ log_handler[i](r); } + log->action = "closing request"; + if (r->connection->timedout) { clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);