more idiomatic logger initialisation, with standard default log level
This commit is contained in:
1 parent
0b4e8b8754
commit
c1c5450caf
1 file changed
+2
-6
+2
-6
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user