Ensure config path stands out when using print_config flag

Done by using the %q fmt verb instead of %s, which wraps the path
within quotes.
This commit is contained in:
ionutboangiu
2024-06-17 19:23:21 +03:00
committed by Dan Christian Bogos
parent d4abea91a5
commit c3524735aa

View File

@@ -433,7 +433,7 @@ func main() {
if *printConfig {
cfgJSON := utils.ToIJSON(cfg.AsMapInterface(cfg.GeneralCfg().RSRSep))
utils.Logger.Info(fmt.Sprintf("Configuration loaded from %s:\n%s", *cfgPath, cfgJSON))
utils.Logger.Info(fmt.Sprintf("Configuration loaded from %q:\n%s", *cfgPath, cfgJSON))
}
// init the concurrentRequests