From 26489b16e5abc76eb1b72e37651d01a1e1a657cb Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 4 Jun 2013 11:27:36 +0400 Subject: 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. --- src/core/ngx_log.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/ngx_log.c') diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index d7830fb4b..20f50971d 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -438,6 +438,7 @@ ngx_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]; -- cgit