remove file reading error print
@@ -145,11 +145,7 @@ func initConfig() {
//viper.AutomaticEnv() // read in environment variables that match
// If a config file is found, read it in.
- err := viper.ReadInConfig()
- if err != nil {
- fmt.Printf("failed reading config file '%s': %v\n", viper.ConfigFileUsed(), err)
- }
- // log.Println("Using config file:", viper.ConfigFileUsed())
+ viper.ReadInConfig()
}
func readUsername() (string, error) {
var username string
