Browse Source

Write logs to STDOUT instead of STDERR

DarthSim 3 years ago
parent
commit
a8293461e6
2 changed files with 3 additions and 2 deletions
  1. 2 0
      CHANGELOG.md
  2. 1 2
      logger/log.go

+ 2 - 0
CHANGELOG.md

@@ -1,6 +1,8 @@
 # Changelog
 
 ## [Unreleased]
+### Fix
+- Write logs to STDOUT instead of STDERR.
 
 ## [3.3.1] - 2022-03-14
 ### Fix

+ 1 - 2
logger/log.go

@@ -2,7 +2,6 @@ package logger
 
 import (
 	"fmt"
-	"log"
 	"os"
 
 	logrus "github.com/sirupsen/logrus"
@@ -11,7 +10,7 @@ import (
 )
 
 func Init() error {
-	log.SetOutput(os.Stdout)
+	logrus.SetOutput(os.Stdout)
 
 	logFormat := "pretty"
 	logLevel := "info"