comparison src/http/ngx_http_request.h @ 5086:1b204b8ea9a3

Introduced the ngx_http_set_connection_log() macro. No functional changes.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 27 Feb 2013 16:56:47 +0000
parents 7f1cbcc71327
children 903f2a5d86a5
comparison
equal deleted inserted replaced
5085:7f1cbcc71327 5086:1b204b8ea9a3
569 569
570 extern ngx_http_header_t ngx_http_headers_in[]; 570 extern ngx_http_header_t ngx_http_headers_in[];
571 extern ngx_http_header_out_t ngx_http_headers_out[]; 571 extern ngx_http_header_out_t ngx_http_headers_out[];
572 572
573 573
574 #define ngx_http_set_connection_log(c, l) \
575 \
576 c->log->file = l->file; \
577 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \
578 c->log->log_level = l->log_level; \
579 }
580
581
574 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */ 582 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */