From 7c2ffcb8de68eedd7a7ed5dc1b9cc73abc4c45d7 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 8 May 2023 21:21:12 +0530 Subject: [PATCH] Don't log entire events Events can be cyclic objects because of relations. i.e if event A is somehow related to event B (maybe by m.refernce), we maintain a reference from A to B and also from B to A. This can break serialization algos (like we JSON.stringiy). --- src/matrix/verification/SAS/channel/RoomChannel.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/matrix/verification/SAS/channel/RoomChannel.ts b/src/matrix/verification/SAS/channel/RoomChannel.ts index dcf60f1c..d63dcf6a 100644 --- a/src/matrix/verification/SAS/channel/RoomChannel.ts +++ b/src/matrix/verification/SAS/channel/RoomChannel.ts @@ -154,7 +154,6 @@ export class RoomChannel extends Disposables implements IChannel { } console.log("entry", entry); await this.log.wrap("RoomChannel.handleRoomMessage", async (log) => { - log.log({ l: "entry", entry }); if (!this.id) { throw new Error("Couldn't find event-id of request message!"); }