Skip to content
Snippets Groups Projects
Verified Commit 06cbd279 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: expose config on start

parent be9133f9
No related branches found
No related tags found
No related merge requests found
......@@ -103,5 +103,12 @@ func ReadConfig(configfile string) (conf *Config, err error) {
}
conf.ExpandEnv()
infoLog.Printf("successfully read config file (%s)", configfile)
if out, err := yaml.Marshal(conf); err != nil {
dbgLog.Printf("error marshalling the config: %s", err.Error())
} else {
dbgLog.Printf("Config:\n%s", string(out))
}
return
}
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