More logging

This commit is contained in:
Kegan Dougal 2020-10-06 11:51:15 +01:00
parent cb8dd816df
commit 0ba962fc5f

View file

@ -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())