Mercurial > hg > nginx
comparison src/stream/ngx_stream.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 | 61d7ae76647d |
children | 4f6efabcb09b |
comparison
equal
deleted
inserted
replaced
6128:69ad3e77922b | 6129:187aa751ad62 |
---|---|
190 (cycle->conf_ctx[ngx_stream_module.index] ? \ | 190 (cycle->conf_ctx[ngx_stream_module.index] ? \ |
191 ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index]) \ | 191 ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index]) \ |
192 ->main_conf[module.ctx_index]: \ | 192 ->main_conf[module.ctx_index]: \ |
193 NULL) | 193 NULL) |
194 | 194 |
195 #define ngx_stream_set_connection_log(c, l) \ | |
196 \ | |
197 c->log->file = l->file; \ | |
198 c->log->next = l->next; \ | |
199 c->log->writer = l->writer; \ | |
200 c->log->wdata = l->wdata; \ | |
201 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ | |
202 c->log->log_level = l->log_level; \ | |
203 } | |
204 | |
205 | 195 |
206 void ngx_stream_init_connection(ngx_connection_t *c); | 196 void ngx_stream_init_connection(ngx_connection_t *c); |
207 void ngx_stream_close_connection(ngx_connection_t *c); | 197 void ngx_stream_close_connection(ngx_connection_t *c); |
208 | 198 |
209 | 199 |