Mercurial > hg > nginx
comparison src/stream/ngx_stream_handler.c @ 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 | 8807a2369b1a |
comparison
equal
deleted
inserted
replaced
6128:69ad3e77922b | 6129:187aa751ad62 |
---|---|
128 s->connection = c; | 128 s->connection = c; |
129 c->data = s; | 129 c->data = s; |
130 | 130 |
131 cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_core_module); | 131 cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_core_module); |
132 | 132 |
133 ngx_stream_set_connection_log(c, cscf->error_log); | 133 ngx_set_connection_log(c, cscf->error_log); |
134 | 134 |
135 len = ngx_sock_ntop(c->sockaddr, c->socklen, text, NGX_SOCKADDR_STRLEN, 1); | 135 len = ngx_sock_ntop(c->sockaddr, c->socklen, text, NGX_SOCKADDR_STRLEN, 1); |
136 | 136 |
137 ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%uA client %*s connected to %V", | 137 ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%uA client %*s connected to %V", |
138 c->number, len, text, &addr_conf->addr_text); | 138 c->number, len, text, &addr_conf->addr_text); |