aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http.h1
-rw-r--r--src/http/ngx_http_request.c3
-rw-r--r--src/http/v3/ngx_http_v3_filter_module.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index fb4157715..708defebc 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -92,7 +92,6 @@ ngx_int_t ngx_http_add_listen(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
void ngx_http_init_connection(ngx_connection_t *c);
void ngx_http_close_connection(ngx_connection_t *c);
-u_char *ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len);
#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)
int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg);
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 30200075e..2b838cfc3 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -50,6 +50,7 @@ static void ngx_http_lingering_close_handler(ngx_event_t *ev);
static ngx_int_t ngx_http_post_action(ngx_http_request_t *r);
static void ngx_http_log_request(ngx_http_request_t *r);
+static u_char *ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len);
static u_char *ngx_http_log_error_handler(ngx_http_request_t *r,
ngx_http_request_t *sr, u_char *buf, size_t len);
@@ -3829,7 +3830,7 @@ ngx_http_close_connection(ngx_connection_t *c)
}
-u_char *
+static u_char *
ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len)
{
u_char *p;
diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c
index 764d97957..5af17e40a 100644
--- a/src/http/v3/ngx_http_v3_filter_module.c
+++ b/src/http/v3/ngx_http_v3_filter_module.c
@@ -917,7 +917,7 @@ ngx_http_v3_create_push_request(ngx_http_request_t *pr, ngx_str_t *path,
ctx->request = NULL;
ctx->current_request = NULL;
- c->log->handler = ngx_http_log_error;
+ c->log->handler = pc->log->handler;
c->log->data = ctx;
c->log->action = "processing pushed request headers";