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
+2 -7
View File
@@ -11,11 +11,11 @@ import (
"time"
gokitlog "github.com/go-kit/log"
"github.com/grafana/grafana/pkg/infra/log/level"
"github.com/go-kit/log/level"
)
var (
timeFormat = "2006-01-02T15:04:05-0700"
timeFormat = time.RFC3339Nano
termTimeFormat = "01-02|15:04:05"
)
@@ -25,10 +25,6 @@ const (
errorKey = "LOG15_ERROR"
)
func SetTimeFormatGokitLog() {
timeFormat = time.RFC3339Nano
}
type terminalLogger struct {
w io.Writer
}
@@ -96,7 +92,6 @@ func getRecord(keyvals ...interface{}) *record {
if len(keyvals)%2 == 1 {
keyvals = append(keyvals, nil)
}
for i := 0; i < len(keyvals); i += 2 {
k, v := keyvals[i], keyvals[i+1]