aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
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_core_module.c
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_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 16e6ddb5d..c4914997b 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1461,11 +1461,7 @@ ngx_http_update_location_config(ngx_http_request_t *r)
}
if (r == r->main) {
- r->connection->log->file = clcf->error_log->file;
-
- if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
- r->connection->log->log_level = clcf->error_log->log_level;
- }
+ ngx_http_set_connection_log(r->connection, clcf->error_log);
}
if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) {