fix logging full event (#11755)

* fix logging full event

* put stacktrace last

* Update src/components/views/rooms/EventTile.tsx

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Valere 2023-10-16 18:52:20 +02:00 committed by GitHub
parent 5ff965106a
commit 15d931a33f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -593,7 +593,7 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
private verifyEvent(): void { private verifyEvent(): void {
this.doVerifyEvent().catch((e) => { this.doVerifyEvent().catch((e) => {
const event = this.props.mxEvent; const event = this.props.mxEvent;
logger.error("Error getting encryption info on event", e, event); logger.error(`Error getting encryption info on event ${event.getId()} in room ${event.getRoomId()}`, e);
}); });
} }