Log config file being loaded

This commit is contained in:
Ryan Cavicchioni 2022-09-08 02:35:01 -05:00
parent a551a10e59
commit 9221a218b9
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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)