From 376e59820c441c18330aa3b9779d0c3c096ad121 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 24 Feb 2021 11:22:07 +0100 Subject: [PATCH] more info when logging gap fills --- src/matrix/room/Room.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 37035b9d..d35aa93f 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -408,7 +408,11 @@ export class Room extends EventEmitter { fillGap(fragmentEntry, amount, log = null) { // TODO move some/all of this out of Room return this._platform.logger.wrapOrRun(log, "fillGap", async log => { + log.set("id", this.id); + log.set("fragment", fragmentEntry.fragmentId); + log.set("dir", fragmentEntry.direction.asApiString()); if (fragmentEntry.edgeReached) { + log.set("edgeReached", true); return; } const response = await this._hsApi.messages(this._roomId, {