From 3c75c20f4f42789b3137020c5f2edcbc31c55c83 Mon Sep 17 00:00:00 2001 From: Patryk Hegenberg Date: Sat, 28 Dec 2024 11:52:02 +0100 Subject: [PATCH] feat(main): remove printing config --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 7e2ee94..24ededa 100644 --- a/main.go +++ b/main.go @@ -40,17 +40,15 @@ func init() { err := viper.ReadInConfig() if err != nil { - log.Printf("error loading config file: %w", err) + log.Printf("error loading config file: %v", err) } allSettings := viper.AllSettings() log.Printf("All loaded settings: %+v", allSettings) err = viper.UnmarshalKey("default", &cfg) if err != nil { - log.Printf("unable to decode into struct: %w", err) + log.Printf("unable to decode into struct: %v", err) } - - log.Printf("Config loaded successfully: %+v", cfg) } func main() {