2de1e338bd
This also prevents debug and trace messages to be sent to the frontend.
21 lines
344 B
Go
21 lines
344 B
Go
package event
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func init() {
|
|
hooks := logrus.LevelHooks{}
|
|
hooks.Add(NewHook(SharedHub()))
|
|
|
|
Log = &logrus.Logger{
|
|
Out: os.Stderr,
|
|
Formatter: &logrus.TextFormatter{},
|
|
Hooks: hooks,
|
|
Level: logrus.DebugLevel,
|
|
ExitFunc: os.Exit,
|
|
ReportCaller: false,
|
|
}
|
|
}
|