Put a log entry in that I might stand a chance of finding

This commit is contained in:
Neil Alexander 2022-06-28 12:24:45 +01:00
parent 1806fd9e2f
commit 67a70d0baa
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -31,6 +31,7 @@ import (
"github.com/matrix-org/dendrite/syncapi/types"
"github.com/matrix-org/gomatrixserverlib"
"github.com/nats-io/nats.go"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
)
@ -380,6 +381,7 @@ func (s *OutputRoomEventConsumer) onRetireInviteEvent(
if err != nil && err != sql.ErrNoRows {
sentry.CaptureException(err)
// panic rather than continue with an inconsistent database
logrus.WithError(err).Error("XXX: Remove invite failure")
log.WithFields(log.Fields{
"event_id": msg.EventID,
log.ErrorKey: err,