fix error message
This commit is contained in:
parent
789e3f2ad8
commit
e5f979d858
2 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue