Chore: Remove the old log format (#51526)

* remove the old log format

* fix CI

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
ying-jeanne
2022-07-08 09:56:30 -05:00
committed by GitHub
co-authored by Emil Tullstedt
parent e1f876eee8
commit 56f3f3fe69
10 changed files with 27 additions and 510 deletions
+3 -5
View File
@@ -8,8 +8,8 @@ import (
"os"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
gokitsyslog "github.com/go-kit/log/syslog"
"github.com/grafana/grafana/pkg/infra/log/level"
"gopkg.in/ini.v1"
)
@@ -25,8 +25,8 @@ type SysLogHandler struct {
var selector = func(keyvals ...interface{}) syslog.Priority {
for i := 0; i < len(keyvals); i += 2 {
if level.IsKey(keyvals[i]) {
val := level.GetValue(keyvals[i+1])
if keyvals[i] == level.Key() {
val := keyvals[i+1]
if val != nil {
switch val {
case level.ErrorValue():
@@ -39,11 +39,9 @@ var selector = func(keyvals ...interface{}) syslog.Priority {
return syslog.LOG_DEBUG
}
}
break
}
}
return syslog.LOG_INFO
}