Chore: Fix log filters (#44681)

This commit is contained in:
Marcus Efraimsson
2022-02-03 23:20:02 +08:00
committed by GitHub
parent 5f16e4cedc
commit bc7e55d99b
12 changed files with 261 additions and 125 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func NewSyslog(sec *ini.Section, format Formatedlogger) *SysLogHandler {
handler.Tag = sec.Key("tag").MustString("")
if err := handler.Init(); err != nil {
_ = level.Error(Root).Log("Failed to init syslog log handler", "error", err)
_ = level.Error(root).Log("Failed to init syslog log handler", "error", err)
os.Exit(1)
}
handler.logger = gokitsyslog.NewSyslogLogger(handler.syslog, format, gokitsyslog.PrioritySelectorOption(selector))