Mercurial > hg > nginx
diff src/core/ngx_cycle.c @ 3750:ffbdaa3c70d6
the -q switch
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Sep 2010 13:43:02 +0000 |
parents | 99b2da73c29d |
children | e3cb8e27e413 |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Thu Aug 26 12:33:08 2010 +0000 +++ b/src/core/ngx_cycle.c Thu Sep 02 13:43:02 2010 +0000 @@ -24,6 +24,7 @@ static ngx_event_t ngx_cleaner_event; ngx_uint_t ngx_test_config; +ngx_uint_t ngx_quiet_mode; #if (NGX_THREADS) ngx_tls_key_t ngx_core_tls_key; @@ -266,7 +267,7 @@ return NULL; } - if (ngx_test_config) { + if (ngx_test_config && !ngx_quiet_mode) { ngx_log_stderr(0, "the configuration file %s syntax is ok", cycle->conf_file.data); }