Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
more idiomatic logger initialisation, with standard default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
rade committed Aug 18, 2015
1 parent 0b4e8b8 commit c1c5450
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions common/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package common
import (
"bytes"
"fmt"
"os"
"strings"

"github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -42,11 +41,8 @@ var (
)

func init() {
Log = &logrus.Logger{
Out: os.Stderr,
Formatter: standardTextFormatter,
Hooks: make(logrus.LevelHooks),
}
Log = logrus.New()
Log.Formatter = standardTextFormatter
}

func SetLogLevel(levelname string) {
Expand Down

0 comments on commit c1c5450

Please sign in to comment.