# HG changeset patch # User Igor Sysoev # Date 1175092713 0 # Node ID 3a95870b3229336296c8c40bfb8afdcb0697b483 # Parent 7964d83695d1ec33640b2f004714fe3c793ee064 style fix diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -874,7 +874,8 @@ ngx_http_update_location_config(ngx_http } if (r == r->main) { - r->connection->log->file = clcf->err_log->file; + r->connection->log->file = clcf->err_log->file; + if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { r->connection->log->log_level = clcf->err_log->log_level; }