From 5af68b1e0a31e28239571086a3ea603dd47e2dd1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Oct 2022 14:29:30 +0100 Subject: [PATCH] Log errors if there are any --- syncapi/storage/shared/storage_consumer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncapi/storage/shared/storage_consumer.go b/syncapi/storage/shared/storage_consumer.go index 0d4169dc3..d9dca6d0f 100644 --- a/syncapi/storage/shared/storage_consumer.go +++ b/syncapi/storage/shared/storage_consumer.go @@ -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 }) }