Log errors if there are any

This commit is contained in:
Neil Alexander 2022-10-11 14:29:30 +01:00
parent d96d0f4a72
commit 5af68b1e0a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -608,6 +608,9 @@ func (d *Database) UpdateRelations(ctx context.Context, event *gomatrixserverlib
event.EventID(), content.Relations.RelationType,
)
}
if err != nil {
logrus.WithError(err).Errorf("Failed to update relations for room %s when processing event %s", event.RoomID(), event.EventID())
}
return err
})
}