Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.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 | a08fad30aeac |
children | 8c6e71722aff |
comparison
equal
deleted
inserted
replaced
6128:69ad3e77922b | 6129:187aa751ad62 |
---|---|
584 | 584 |
585 extern ngx_http_header_t ngx_http_headers_in[]; | 585 extern ngx_http_header_t ngx_http_headers_in[]; |
586 extern ngx_http_header_out_t ngx_http_headers_out[]; | 586 extern ngx_http_header_out_t ngx_http_headers_out[]; |
587 | 587 |
588 | 588 |
589 #define ngx_http_set_connection_log(c, l) \ | |
590 \ | |
591 c->log->file = l->file; \ | |
592 c->log->next = l->next; \ | |
593 c->log->writer = l->writer; \ | |
594 c->log->wdata = l->wdata; \ | |
595 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ | |
596 c->log->log_level = l->log_level; \ | |
597 } | |
598 | |
599 | |
600 #define ngx_http_set_log_request(log, r) \ | 589 #define ngx_http_set_log_request(log, r) \ |
601 ((ngx_http_log_ctx_t *) log->data)->current_request = r | 590 ((ngx_http_log_ctx_t *) log->data)->current_request = r |
602 | 591 |
603 | 592 |
604 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */ | 593 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */ |