0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 23:10:54 +01:00

modules/client/rooms/state: Log an error when a state event fetch fails during sync.

This commit is contained in:
Jason Volk 2019-03-23 02:39:03 -07:00
parent 17abecff3b
commit 54f7ddb6bd

View file

@ -171,7 +171,17 @@ ircd::m::sync::room_state_polylog_events(data &data)
//assert(event.valid); //assert(event.valid);
if(unlikely(!event.valid)) if(unlikely(!event.valid))
{
assert(data.room);
log::error
{
log, "Failed to fetch event idx:%lu in room %s state.",
event_idx,
string_view{data.room->room_id}
};
return; return;
}
const std::lock_guard lock{mutex}; const std::lock_guard lock{mutex};
room_state_append(data, array, event, event_idx); room_state_append(data, array, event, event_idx);