the -q switch
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index 5973fbe..357c6b2 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -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);
}