Skip to content
Snippets Groups Projects
Commit 5d8a462d authored by Damyan Mitev's avatar Damyan Mitev :beach:
Browse files

change config dump location

parent d55abeb8
No related branches found
No related tags found
1 merge request!63vereign root certificate expires on 1st november
Pipeline #32222 passed with stages
in 7 minutes and 46 seconds
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment