Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #554 from NicholasABriganti/nb-add-json
Browse files Browse the repository at this point in the history
Fixing references to logrus import
  • Loading branch information
jippi authored Mar 20, 2020
2 parents 7ff12f7 + 8e252e3 commit b981692
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ func main() {
startLogging(cfg.LogLevel)

if os.Getenv("LOG_FORMAT") == "json" {
log.SetFormatter(&logrus.JSONFormatter{
FieldMap: logrus.FieldMap{
logrus.FieldKeyTime: "@timestamp",
logrus.FieldKeyLevel: "@level",
logrus.FieldKeyMsg: "@message",
log.SetFormatter(&log.JSONFormatter{
FieldMap: log.FieldMap{
log.FieldKeyTime: "@timestamp",
log.FieldKeyLevel: "@level",
log.FieldKeyMsg: "@message",
},
})
}
Expand Down

0 comments on commit b981692

Please sign in to comment.