mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Introduced the ngx_http_set_connection_log() macro.
No functional changes.
This commit is contained in:
@@ -443,10 +443,8 @@ ngx_http_init_request(ngx_event_t *rev)
|
||||
#endif
|
||||
|
||||
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
||||
c->log->file = clcf->error_log->file;
|
||||
if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) {
|
||||
c->log->log_level = clcf->error_log->log_level;
|
||||
}
|
||||
|
||||
ngx_http_set_connection_log(r->connection, clcf->error_log);
|
||||
|
||||
if (c->buffer == NULL) {
|
||||
c->buffer = ngx_create_temp_buf(c->pool,
|
||||
@@ -1852,11 +1850,8 @@ found:
|
||||
r->loc_conf = cscf->ctx->loc_conf;
|
||||
|
||||
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
||||
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);
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user