comparison src/http/ngx_http_request.h @ 5928:8dfee01ff0bd

Upstream: improved subrequest logging. To ensure proper logging make sure to set current_request in all event handlers, including resolve, ssl handshake, cache lock wait timer and aio read handlers. A macro ngx_http_set_log_request() introduced to simplify this.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 02 Dec 2014 05:54:54 +0300
parents 5fb1e57c758a
children ccad84a174e0
comparison
equal deleted inserted replaced
5927:ac2a8e4d8f01 5928:8dfee01ff0bd
593 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ 593 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \
594 c->log->log_level = l->log_level; \ 594 c->log->log_level = l->log_level; \
595 } 595 }
596 596
597 597
598 #define ngx_http_set_log_request(log, r) \
599 ((ngx_http_log_ctx_t *) log->data)->current_request = r
600
601
598 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */ 602 #endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */