Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 5240:d8af1005e886
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.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 04 Jun 2013 11:27:36 +0400 |
parents | 4bcd35e7a0f0 |
children | 7ecaa9e4bf1b |
comparison
equal
deleted
inserted
replaced
5239:85e72ea8fbfd | 5240:d8af1005e886 |
---|---|
4896 | 4896 |
4897 value = cf->args->elts; | 4897 value = cf->args->elts; |
4898 | 4898 |
4899 if (ngx_strcmp(value[1].data, "stderr") == 0) { | 4899 if (ngx_strcmp(value[1].data, "stderr") == 0) { |
4900 ngx_str_null(&name); | 4900 ngx_str_null(&name); |
4901 cf->cycle->log_use_stderr = 1; | |
4901 | 4902 |
4902 } else { | 4903 } else { |
4903 name = value[1]; | 4904 name = value[1]; |
4904 } | 4905 } |
4905 | 4906 |