diff options
author | Vladimir Homutov <vl@nginx.com> | 2015-04-25 22:44:02 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2015-04-25 22:44:02 +0300 |
commit | df555ffce6fe6416cc874dcd69a64584c6c7f5e8 (patch) | |
tree | 197ff71ba0b0d9dfa4da7f70e6c5bb1d18ff3c1c /src/core/ngx_connection.h | |
parent | d61f21c5e8735da57fb1e1c1a91103e71f5c6207 (diff) | |
download | nginx-df555ffce6fe6416cc874dcd69a64584c6c7f5e8.tar.gz nginx-df555ffce6fe6416cc874dcd69a64584c6c7f5e8.zip |
Core: the ngx_set_connection_log() macro.
The http and stream versions of this macro were identical.
Diffstat (limited to 'src/core/ngx_connection.h')
-rw-r--r-- | src/core/ngx_connection.h | 11 |
1 files changed, 11 insertions, 0 deletions
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); |