Log config file being loaded
This commit is contained in:
parent
a551a10e59
commit
9221a218b9
@ -139,6 +139,10 @@ func loadConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
log.WithField("filename", viper.ConfigFileUsed()).Info(
|
||||
"loaded configuration file",
|
||||
)
|
||||
|
||||
err := viper.Unmarshal(&C)
|
||||
if err != nil {
|
||||
log.Fatalf("unable to decode into struct: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user