From 0ba962fc5f945e8c60c7f3bb031618146e15447a Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 6 Oct 2020 11:51:15 +0100 Subject: [PATCH] More logging --- roomserver/internal/perform/perform_backfill.go | 1 + 1 file changed, 1 insertion(+) diff --git a/roomserver/internal/perform/perform_backfill.go b/roomserver/internal/perform/perform_backfill.go index 92048c5b..d05a3806 100644 --- a/roomserver/internal/perform/perform_backfill.go +++ b/roomserver/internal/perform/perform_backfill.go @@ -241,6 +241,7 @@ func newBackfillRequester(db storage.Database, fsAPI federationSenderAPI.Federat } func (b *backfillRequester) StateIDsBeforeEvent(ctx context.Context, targetEvent gomatrixserverlib.HeaderedEvent) ([]string, error) { + util.GetLogger(ctx).Infof("depth=%d type=%s event=%s prevs=%v", targetEvent.Depth(), targetEvent.Type(), targetEvent.EventID(), targetEvent.PrevEventIDs()) b.eventIDMap[targetEvent.EventID()] = targetEvent.Unwrap() if ids, ok := b.eventIDToBeforeStateIDs[targetEvent.EventID()]; ok { util.GetLogger(ctx).Infof("backfill: StateIDsBeforeEvent OK returning cached state IDs for event %s", targetEvent.EventID())