Log the room ID, event ID, PDU, and event type where possible

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-07-28 23:40:10 +00:00
parent 863103450c
commit cc5dcceacc
4 changed files with 23 additions and 12 deletions

View file

@ -429,7 +429,9 @@ pub async fn get_room_event_route(
.rooms
.timeline
.get_pdu(&body.event_id)?
.ok_or(Error::BadRequest(ErrorKind::NotFound, "Event not found."))?;
.ok_or({
warn!("Event not found, event ID: {:?}", &body.event_id);
Error::BadRequest(ErrorKind::NotFound, "Event not found.")})?;
if !services().rooms.state_accessor.user_can_see_event(
sender_user,