From 12afea70cff38047ea6f5c2df51ef0195a614b1e Mon Sep 17 00:00:00 2001 From: discollizard Date: Thu, 20 Mar 2025 21:18:21 -0300 Subject: [PATCH] Core: -t flag now also shows included config files Simple implementation that shows included files --- src/core/ngx_conf_file.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index 197704b0f..73afdcb0d 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -875,6 +875,11 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) if (rv != NGX_CONF_OK) { break; } + + if(ngx_test_config){ + ngx_log_stderr(0, "the configuration file %s syntax is ok", + file.data); + } } ngx_close_glob(&gl);