From c3524735aa294d0e54753e52839b2398eaa21de5 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Mon, 17 Jun 2024 19:23:21 +0300 Subject: [PATCH] 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. --- cmd/cgr-engine/cgr-engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cgr-engine/cgr-engine.go b/cmd/cgr-engine/cgr-engine.go index f49e7c61f..2fdd04a4d 100644 --- a/cmd/cgr-engine/cgr-engine.go +++ b/cmd/cgr-engine/cgr-engine.go @@ -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