diff --git a/cmd/root.go b/cmd/root.go index 2e685f9..aa84161 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -92,11 +92,10 @@ func initConfig() { // If a config file is found, read it in if err == nil { + log.Configure() log.Infof("Using config file: %v", viper.ConfigFileUsed()) } - log.Configure() - viper.OnConfigChange(func(evt fsnotify.Event) { log.Infof("Reconfiguring: %v", evt.Name) log.Configure()