From 5d8a462d2966f74b42087a100245865dfc8762ec Mon Sep 17 00:00:00 2001
From: Damyan Mitev <damyan.mitev@vereign.com>
Date: Mon, 31 Aug 2020 13:56:20 +0300
Subject: [PATCH] change config dump location

---
 config/configs.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/config/configs.go b/config/configs.go
index 137f20c..6c09c44 100644
--- a/config/configs.go
+++ b/config/configs.go
@@ -113,6 +113,13 @@ func SetConfigValues(configFile, etcdURL string) error {
 		}
 	}
 
+	// Print all config values to log file
+	log.Printf("All Settings From Config:")
+	as := viper.AllSettings()
+	for key, _ := range as {
+		log.Printf("%s => %s", key, viper.GetString(key))
+	}
+
 	CertificationMethod = viper.GetString("certificationMethod")
 	if CertificationMethod == "1" {
 		// Read From File System
@@ -184,13 +191,6 @@ func SetConfigValues(configFile, etcdURL string) error {
 		return errors.New("Encryption certificate public key does not correspond to encryption private key")
 	}
 
-	// Print all config values to log file
-	log.Printf("All Settings From Config:")
-	as := viper.AllSettings()
-	for key, _ := range as {
-		log.Printf("%s => %s", key, viper.GetString(key))
-	}
-
 	GrpcListenAddress = viper.GetString("grpcListenAddress")
 	RestListenAddress = viper.GetString("restListenAddress")
 
-- 
GitLab