aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2013-06-04 11:27:36 +0400
committerVladimir Homutov <vl@nginx.com>2013-06-04 11:27:36 +0400
commit26489b16e5abc76eb1b72e37651d01a1e1a657cb (patch)
tree4504ca380ab2f637e3ea8d77c7ebb1041de3cbf2 /src/http/ngx_http_core_module.c
parent9db2eddd8ad9da27a68e4551fbb78ccd79470b6c (diff)
downloadnginx-26489b16e5abc76eb1b72e37651d01a1e1a657cb.tar.gz
nginx-26489b16e5abc76eb1b72e37651d01a1e1a657cb.zip
Core: fixed handling of "stderr" in error_log.
If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 25d3dc97d..4403fa308 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -4898,6 +4898,7 @@ ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (ngx_strcmp(value[1].data, "stderr") == 0) {
ngx_str_null(&name);
+ cf->cycle->log_use_stderr = 1;
} else {
name = value[1];