more idiomatic logger initialisation, with standard default log level

This commit is contained in:
Matthias Radestock committed 2015-08-18 12:04:48 +01:00
1 parent 0b4e8b8754
commit c1c5450caf
1 file changed
+2 -6
+2 -6
View File
@@ -3,7 +3,6 @@ package common
import (
"bytes"
"fmt"
"os"
"strings"
"github.com/Sirupsen/logrus"
@@ -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) {