From 17ecd084f11ef7162dc4d5df761f2ce4146517e9 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 16 Oct 2023 17:36:03 +0200 Subject: [PATCH 1/3] fix logging full event --- src/components/views/rooms/EventTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index f5166f0c071..6f8ae28a65c 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -592,7 +592,7 @@ export class UnwrappedEventTile extends React.Component private verifyEvent(): void { this.doVerifyEvent().catch((e) => { const event = this.props.mxEvent; - logger.error("Error getting encryption info on event", e, event); + logger.error("Error getting encryption info on event", e, event.getRoomId(), event.getId()); }); } From 46efae48fec0a3590aec99051db01101e411e319 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 16 Oct 2023 17:42:03 +0200 Subject: [PATCH 2/3] put stacktrace last --- src/components/views/rooms/EventTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 6f8ae28a65c..361a428c5da 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -592,7 +592,7 @@ export class UnwrappedEventTile extends React.Component private verifyEvent(): void { this.doVerifyEvent().catch((e) => { const event = this.props.mxEvent; - logger.error("Error getting encryption info on event", e, event.getRoomId(), event.getId()); + logger.error("Error getting encryption info on event", event.getRoomId(), event.getId(), e); }); } From bac676686eb16140fbab98956bcdedaef9063e25 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 16 Oct 2023 18:12:22 +0200 Subject: [PATCH 3/3] Update src/components/views/rooms/EventTile.tsx Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> --- src/components/views/rooms/EventTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index d0a46f2ec99..45f42986acf 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -593,7 +593,7 @@ export class UnwrappedEventTile extends React.Component private verifyEvent(): void { this.doVerifyEvent().catch((e) => { const event = this.props.mxEvent; - logger.error("Error getting encryption info on event", event.getRoomId(), event.getId(), e); + logger.error(`Error getting encryption info on event ${event.getId()} in room ${event.getRoomId()}`, e); }); }