From 04580f75a8b68f6910eaaee97e8a5d535b4a89ce Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 26 Jun 2023 15:10:22 +0200 Subject: [PATCH] chore(sdk): Log the `SyncOp`s. --- crates/matrix-sdk/src/sliding_sync/list/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/sliding_sync/list/mod.rs b/crates/matrix-sdk/src/sliding_sync/list/mod.rs index e0748dcd9..62f65b03f 100644 --- a/crates/matrix-sdk/src/sliding_sync/list/mod.rs +++ b/crates/matrix-sdk/src/sliding_sync/list/mod.rs @@ -24,7 +24,7 @@ pub use room_list_entry::RoomListEntry; use ruma::{api::client::sync::sync_events::v4, assign, OwnedRoomId, TransactionId}; use serde::{Deserialize, Serialize}; use tokio::sync::broadcast::Sender; -use tracing::{instrument, warn}; +use tracing::{info, instrument, warn}; use self::sticky::SlidingSyncListStickyParameters; use super::{ @@ -514,12 +514,13 @@ impl SlidingSyncListInner { } } -#[instrument(skip(operations))] fn apply_sync_operations( operations: &[v4::SyncOp], room_list: &mut ObservableVector, rooms_that_have_received_an_update: &mut HashSet, ) -> Result<(), Error> { + info!(?operations); + for operation in operations { match &operation.op { // Specification says: