Fix call to println
continuous-integration/drone/push Build is passing Details

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-04-02 21:38:16 +02:00
parent 6d1018e647
commit e7706a20dd
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -254,7 +254,7 @@ func InitConfig() {
homeDir, err := os.UserHomeDir()
if err != nil {
log.Println("No home directory found, not using config from ~/.config/vikunja/. Error was: %s", err.Error())
log.Printf("No home directory found, not using config from ~/.config/vikunja/. Error was: %s\n", err.Error())
} else {
viper.AddConfigPath(path.Join(homeDir, ".config", "vikunja"))
}
@ -264,11 +264,11 @@ func InitConfig() {
err = viper.ReadInConfig()
if err != nil {
log.Println(err.Error())
log.Println("Using defaults.")
log.Println("Using default config.")
return
}
log.Println("Using config file:", viper.ConfigFileUsed())
log.Printf("Using config file: %s", viper.ConfigFileUsed())
}
func random(length int) (string, error) {