Mercurial > hg > nginx
comparison src/core/ngx_connection.h @ 6129:187aa751ad62
Core: the ngx_set_connection_log() macro.
The http and stream versions of this macro were identical.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Sat, 25 Apr 2015 22:44:02 +0300 |
parents | c8acea7c7041 |
children | 4f6efabcb09b |
comparison
equal
deleted
inserted
replaced
6128:69ad3e77922b | 6129:187aa751ad62 |
---|---|
186 | 186 |
187 #if (NGX_THREADS) | 187 #if (NGX_THREADS) |
188 ngx_thread_task_t *sendfile_task; | 188 ngx_thread_task_t *sendfile_task; |
189 #endif | 189 #endif |
190 }; | 190 }; |
191 | |
192 | |
193 #define ngx_set_connection_log(c, l) \ | |
194 \ | |
195 c->log->file = l->file; \ | |
196 c->log->next = l->next; \ | |
197 c->log->writer = l->writer; \ | |
198 c->log->wdata = l->wdata; \ | |
199 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ | |
200 c->log->log_level = l->log_level; \ | |
201 } | |
191 | 202 |
192 | 203 |
193 ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, void *sockaddr, | 204 ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, void *sockaddr, |
194 socklen_t socklen); | 205 socklen_t socklen); |
195 ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle); | 206 ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle); |