aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-02-27 16:56:47 +0000
committerValentin Bartenev <vbart@nginx.com>2013-02-27 16:56:47 +0000
commitb314102ff14f0c809db43bebd1ff75ceeb7769a9 (patch)
tree0a1011807717d67afdd18bc711276fc6863f9666 /src/http/ngx_http_request.h
parent508afb8cf504cf4ee77dfa69b75a93ac259817c2 (diff)
downloadnginx-b314102ff14f0c809db43bebd1ff75ceeb7769a9.tar.gz
nginx-b314102ff14f0c809db43bebd1ff75ceeb7769a9.zip
Introduced the ngx_http_set_connection_log() macro.
No functional changes.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index d7d076083..7ceea6225 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -571,4 +571,12 @@ extern ngx_http_header_t ngx_http_headers_in[];
extern ngx_http_header_out_t ngx_http_headers_out[];
+#define ngx_http_set_connection_log(c, l) \
+ \
+ c->log->file = l->file; \
+ if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \
+ c->log->log_level = l->log_level; \
+ }
+
+
#endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */