Browse Source

Merge pull request #147 from matrix-org/kegan/fix-log-field-names

Do not use log field names 'level', 'msg' or 'time'
pull/152/head
Kegsay 8 years ago
committed by GitHub
parent
commit
ae5b0df563
  1. 2
      src/github.com/matrix-org/go-neb/services/github/github_webhook.go
  2. 2
      src/github.com/matrix-org/go-neb/services/travisci/travisci.go

2
src/github.com/matrix-org/go-neb/services/github/github_webhook.go

@ -107,7 +107,7 @@ func (s *WebhookService) OnReceiveWebhook(w http.ResponseWriter, req *http.Reque
}
if notifyRoom {
logger.WithFields(log.Fields{
"msg": msg,
"message": msg,
"room_id": roomID,
}).Print("Sending notification to room")
if _, e := cli.SendMessageEvent(roomID, "m.room.message", msg); e != nil {

2
src/github.com/matrix-org/go-neb/services/travisci/travisci.go

@ -228,7 +228,7 @@ func (s *Service) OnReceiveWebhook(w http.ResponseWriter, req *http.Request, cli
}
logger.WithFields(log.Fields{
"msg": msg,
"message": msg,
"room_id": roomID,
}).Print("Sending Travis-CI notification to room")
if _, e := cli.SendMessageEvent(roomID, "m.room.message", msg); e != nil {

Loading…
Cancel
Save