diff options
author | Vladimir Homutov <vl@nginx.com> | 2013-06-13 14:50:10 +0400 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2013-06-13 14:50:10 +0400 |
commit | aac7f7f4648dd5b1ada39931f4dc88e0645ce7c1 (patch) | |
tree | 84bbdb479b0ecfe807b29e2244a62998323976a4 /src/core/ngx_log.c | |
parent | de2ec2c65099b18f02020107fc97b5c639ed5aec (diff) | |
download | nginx-aac7f7f4648dd5b1ada39931f4dc88e0645ce7c1.tar.gz nginx-aac7f7f4648dd5b1ada39931f4dc88e0645ce7c1.zip |
Core: moved initialization of log level.
The cycle->new_log->log_level should only be initialized by ngx_init_cycle()
if no error logs were found in the configuration. This move allows to get rid
of extra initialization in ngx_error_log().
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 20f50971d..ea08ba744 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -454,7 +454,5 @@ ngx_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) return NGX_CONF_OK; } - cf->cycle->new_log.log_level = 0; - return ngx_log_set_levels(cf, &cf->cycle->new_log); } |