diff 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
line wrap: on
line diff
--- 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_
 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_ */