Skip to content
Snippets Groups Projects
Commit 6d429ab5 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

config values are printed to log file

parent 0921e31b
No related branches found
No related tags found
3 merge requests!19Ci,!18Resolve "142-Implement_CA_cert",!16Resolve "Configurable MaxMessageSize"
......@@ -27,4 +27,11 @@ func SetConfigValues() {
if err := viper.ReadInConfig(); err != nil {
log.Printf("can't read config: %s, will use default values", err)
}
// 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))
}
}
\ No newline at end of file
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