chore(sliding sync): log the room id in the limited flag computation

This commit is contained in:
Benjamin Bouvier
2023-09-14 18:10:33 +02:00
parent b749b3546f
commit dde2f408c5

View File

@@ -945,7 +945,7 @@ impl StickyData for SlidingSyncStickyParameters {
/// TODO remove this workaround as soon as support of the `limited` flag is
/// properly implemented in the open-source proxy: https://github.com/matrix-org/sliding-sync/issues/197
// NOTE: SS proxy workaround.
#[instrument(skip_all)]
#[instrument(skip_all, fields(room_id))]
fn compute_limited(
local_rooms: &BTreeMap<OwnedRoomId, SlidingSyncRoom>,
remote_rooms: &mut BTreeMap<OwnedRoomId, v4::SlidingSyncRoom>,
@@ -962,6 +962,8 @@ fn compute_limited(
continue;
}
Span::current().record("room_id", tracing::field::debug(room_id));
let remote_events = &remote_room.timeline;
if remote_events.is_empty() {
trace!("no timeline updates in the response => not limited");