From 704fe6719f50cd972b245efd46183ec7426cf3d0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 12 Aug 2024 11:57:07 +0200 Subject: [PATCH] feat(sdk): Add a log for `must_process_rooms_response`. This patch adds a `trace` log for `must_process_rooms_response`. That's useful for debugging weird bugs. --- crates/matrix-sdk/src/sliding_sync/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/matrix-sdk/src/sliding_sync/mod.rs b/crates/matrix-sdk/src/sliding_sync/mod.rs index 953f34a29..abeba273f 100644 --- a/crates/matrix-sdk/src/sliding_sync/mod.rs +++ b/crates/matrix-sdk/src/sliding_sync/mod.rs @@ -277,6 +277,8 @@ impl SlidingSync { let must_process_rooms_response = self.must_process_rooms_response().await; + trace!(yes = must_process_rooms_response, "Must process rooms response?"); + // Compute `limited`, if we're interested in a room list query. if must_process_rooms_response { let known_rooms = self.inner.rooms.read().await;