Skip to content

Commit

Permalink
feat(sdk): Add a log for must_process_rooms_response.
Browse files Browse the repository at this point in the history
This patch adds a `trace` log for `must_process_rooms_response`. That's
useful for debugging weird bugs.
  • Loading branch information
Hywan committed Aug 12, 2024
1 parent 0b9e07a commit 704fe67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/matrix-sdk/src/sliding_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 704fe67

Please sign in to comment.