don't log tryInsert failures anymore as everything is logged in Store

This commit is contained in:
Bruno Windels 2021-09-22 10:23:28 +02:00
parent 1963635dd7
commit b58e10521f
2 changed files with 0 additions and 3 deletions

View file

@ -127,8 +127,6 @@ export class GapWriter {
if (await txn.timelineEvents.tryInsert(eventStorageEntry)) {
const eventEntry = new EventEntry(eventStorageEntry, this._fragmentIdComparer);
directionalAppend(entries, eventEntry, direction);
} else {
log.log({l: `could not write event`, id: event.event_id}, log.level.Warn);
}
}
return {entries, updatedEntries};

View file

@ -164,7 +164,6 @@ export class SyncWriter {
}
const couldInsert = await txn.timelineEvents.tryInsert(storageEntry, log);
if (!couldInsert) {
log.log({l: `could not write event, likely #504`, id: event.event_id}, log.level.Warn);
continue;
}
const entry = new EventEntry(storageEntry, this._fragmentIdComparer);