diff --git a/config/configs.go b/config/configs.go index 137f20c95c4714f0a910c0cc9e4458cb62309219..6c09c440795d5868458c9958bed338289081206a 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")