From e7706a20dde75659e0072b8d5ce255a6f86104ab Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 2 Apr 2020 21:38:16 +0200 Subject: [PATCH] Fix call to println Signed-off-by: kolaente --- pkg/config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 1a88136b..6c092a9a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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) {