Mercurial > hg > nginx
comparison src/core/ngx_log.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 | d620f497c50f |
children | 3bb51e5afa9e |
comparison
equal
deleted
inserted
replaced
5239:85e72ea8fbfd | 5240:d8af1005e886 |
---|---|
436 | 436 |
437 value = cf->args->elts; | 437 value = cf->args->elts; |
438 | 438 |
439 if (ngx_strcmp(value[1].data, "stderr") == 0) { | 439 if (ngx_strcmp(value[1].data, "stderr") == 0) { |
440 ngx_str_null(&name); | 440 ngx_str_null(&name); |
441 cf->cycle->log_use_stderr = 1; | |
441 | 442 |
442 } else { | 443 } else { |
443 name = value[1]; | 444 name = value[1]; |
444 } | 445 } |
445 | 446 |