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

Commit

Permalink
fixing references to logrus import
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasABriganti committed Mar 20, 2020
1 parent dad04d8 commit 8e252e3
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 8e252e3

Please sign in to comment.