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

@ -342,7 +342,9 @@ impl Service {
.transpose()?;
let room_version = create_event_content
.map(|create_event| create_event.room_version)
.ok_or(Error::BadDatabase("Invalid room version"))?;
.ok_or({
warn!("Invalid room version for room {room_id}");
Error::BadDatabase("Invalid room version")})?;
Ok(room_version)
}