From 37c85fc7743ea33ea8e70bf3f7863ce1316ee9ff Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 9 Feb 2026 13:39:42 +0100 Subject: [PATCH] chore(sdk): Downgrade a log from `info` to `trace`. This patch changes an `info!` log to a `trace!`. Latest Events are pretty stable now, and we don't get an info for each new computation except when we want a proper trace. --- crates/matrix-sdk/src/latest_events/latest_event/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk/src/latest_events/latest_event/mod.rs b/crates/matrix-sdk/src/latest_events/latest_event/mod.rs index 0bd16a795..9d916a410 100644 --- a/crates/matrix-sdk/src/latest_events/latest_event/mod.rs +++ b/crates/matrix-sdk/src/latest_events/latest_event/mod.rs @@ -23,7 +23,7 @@ pub use matrix_sdk_base::latest_event::{ }; use matrix_sdk_base::{RoomInfoNotableUpdateReasons, RoomState, StateChanges}; use ruma::{EventId, OwnedEventId, UserId, events::room::power_levels::RoomPowerLevels}; -use tracing::{error, info, instrument, warn}; +use tracing::{error, info, instrument, trace, warn}; use crate::{Room, event_cache::RoomEventCache, room::WeakRoom, send_queue::RoomSendQueueUpdate}; @@ -110,7 +110,7 @@ impl LatestEvent { ) .await; - info!(value = ?new_value, "Computed a remote `LatestEventValue`"); + trace!(value = ?new_value, "Computed a remote `LatestEventValue`"); if let Some(new_value) = new_value { self.update(new_value).await; @@ -137,7 +137,7 @@ impl LatestEvent { ) .await; - info!(value = ?new_value, "Computed a local `LatestEventValue`"); + trace!(value = ?new_value, "Computed a local `LatestEventValue`"); if let Some(new_value) = new_value { self.update(new_value).await; @@ -158,7 +158,7 @@ impl LatestEvent { RoomState::Invited => { let new_value = Builder::new_remote_for_invite(&room).await; - info!(value = ?new_value, "Computed a remote `LatestEventValue` for invite"); + trace!(value = ?new_value, "Computed a remote `LatestEventValue` for invite"); new_value }