diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-09-02 13:43:02 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-09-02 13:43:02 +0000 |
commit | 2cb30f153f8266d31661a7170ea838aae619447e (patch) | |
tree | 3ba02c0e50dee71ca9ac0eb1242641a7e19d5cb3 /src/core/ngx_cycle.c | |
parent | f7dd767e57563b77ecc2c4c4c2fcb7f4973375d1 (diff) | |
download | nginx-2cb30f153f8266d31661a7170ea838aae619447e.tar.gz nginx-2cb30f153f8266d31661a7170ea838aae619447e.zip |
the -q switch
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r-- | src/core/ngx_cycle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 5973fbe23..357c6b284 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -24,6 +24,7 @@ static ngx_pool_t *ngx_temp_pool; 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 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) 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); } |