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).
This commit is contained in:
RMidhunSuresh 2023-05-08 21:21:12 +05:30
parent 0f27b68a37
commit 7c2ffcb8de

View File

@ -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!");
}