diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-30 13:53:42 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-30 13:53:42 +0000 |
commit | 0cd76ea2902588a7f3baea47407c48956aaa19e6 (patch) | |
tree | 34e7bfe5726c80f084bd6a7f04a3d40b3e0cb877 /src/http/ngx_http_request.c | |
parent | 06d4aa1883034b6117a29887bc90a74ae433f3fd (diff) | |
download | nginx-0cd76ea2902588a7f3baea47407c48956aaa19e6.tar.gz nginx-0cd76ea2902588a7f3baea47407c48956aaa19e6.zip |
*) refactor error_log processing: listen socket log might inherit built-in
error_log with zero level, and r2447, r2466, r2467 were not enough
*) remove bogus "stderr" level
*) some functions and fields renames
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index d06c6dd3f..9cdd92ddd 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -420,9 +420,9 @@ 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->err_log->file; + c->log->file = clcf->error_log->file; if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { - c->log->log_level = clcf->err_log->log_level; + c->log->log_level = clcf->error_log->log_level; } if (c->buffer == NULL) { @@ -1704,10 +1704,10 @@ 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->err_log->file; + r->connection->log->file = clcf->error_log->file; if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { - r->connection->log->log_level = clcf->err_log->log_level; + r->connection->log->log_level = clcf->error_log->log_level; } return NGX_OK; |