feat(main): remove printing config
This commit is contained in:
parent
60677c8a79
commit
3c75c20f4f
1 changed files with 2 additions and 4 deletions
6
main.go
6
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue