From 9221a218b9c52e2ac88f876b04e2d7cd7d46e5e3 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 8 Sep 2022 02:35:01 -0500 Subject: [PATCH] Log config file being loaded --- bot/bot.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot/bot.go b/bot/bot.go index b19b52f..4806927 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -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)