From 43676f045ce998ecf758d86a5eea106e354fcddb Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 1 Sep 2019 18:23:35 +0200 Subject: [PATCH] Switched default logger to stdout instead of stderr --- pkg/log/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/logging.go b/pkg/log/logging.go index 73c1282a..b194f052 100644 --- a/pkg/log/logging.go +++ b/pkg/log/logging.go @@ -87,7 +87,7 @@ func InitLogger() { // GetLogWriter returns the writer to where the normal log goes, depending on the config func GetLogWriter(logfile string) (writer io.Writer) { - writer = os.Stderr // Set the default case to prevent nil pointer panics + writer = os.Stdout // Set the default case to prevent nil pointer panics switch viper.GetString("log." + logfile) { case "file": f, err := os.OpenFile(config.LogPath.GetString()+"/"+logfile+".log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)