remove fluentd timestamp (#3708)

This commit is contained in:
Preston Van Loon
2019-10-03 20:56:10 -07:00
committed by terence tsao
parent fddb51fc45
commit 20e97bc6c3
2 changed files with 10 additions and 2 deletions

View File

@@ -98,7 +98,11 @@ func main() {
logrus.SetFormatter(formatter)
break
case "fluentd":
logrus.SetFormatter(joonix.NewFormatter())
f := joonix.NewFormatter()
if err := joonix.DisableTimestampFormat(f); err != nil {
panic(err)
}
logrus.SetFormatter(f)
break
case "json":
logrus.SetFormatter(&logrus.JSONFormatter{})

View File

@@ -123,7 +123,11 @@ contract in order to activate the validator client`,
logrus.SetFormatter(formatter)
break
case "fluentd":
logrus.SetFormatter(joonix.NewFormatter())
f := joonix.NewFormatter()
if err := joonix.DisableTimestampFormat(f); err != nil {
panic(err)
}
logrus.SetFormatter(f)
break
case "json":
logrus.SetFormatter(&logrus.JSONFormatter{})