From df555ffce6fe6416cc874dcd69a64584c6c7f5e8 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Sat, 25 Apr 2015 22:44:02 +0300 Subject: Core: the ngx_set_connection_log() macro. The http and stream versions of this macro were identical. --- src/core/ngx_connection.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/ngx_connection.h') diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index f1ca9619b..27bb8a99c 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -190,6 +190,17 @@ struct ngx_connection_s { }; +#define ngx_set_connection_log(c, l) \ + \ + c->log->file = l->file; \ + c->log->next = l->next; \ + c->log->writer = l->writer; \ + c->log->wdata = l->wdata; \ + if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ + c->log->log_level = l->log_level; \ + } + + ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, void *sockaddr, socklen_t socklen); ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle); -- cgit