From 7d2d1a53bf664966652d44f6cb86a44171d2ff76 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 23 Oct 2023 18:31:18 +0100 Subject: [PATCH] Exclude `Store` from tracing Debug output for the `Store` is extremely verbose, so we don't want to log it every time we touch this function. --- crates/matrix-sdk-crypto/CHANGELOG.md | 3 +++ crates/matrix-sdk-crypto/src/olm/account.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-crypto/CHANGELOG.md b/crates/matrix-sdk-crypto/CHANGELOG.md index 522a8e85b..e035768dc 100644 --- a/crates/matrix-sdk-crypto/CHANGELOG.md +++ b/crates/matrix-sdk-crypto/CHANGELOG.md @@ -70,3 +70,6 @@ - Remove spurious "Unknown outgoing secret request" warning which was logged for every outgoing secret request. + +- Stop logging large quantities of data about the `Store` during olm + decryption. diff --git a/crates/matrix-sdk-crypto/src/olm/account.rs b/crates/matrix-sdk-crypto/src/olm/account.rs index d13848603..52b42312b 100644 --- a/crates/matrix-sdk-crypto/src/olm/account.rs +++ b/crates/matrix-sdk-crypto/src/olm/account.rs @@ -1164,7 +1164,7 @@ impl Account { } /// Decrypt an Olm message, creating a new Olm session if possible. - #[instrument(skip(self, message))] + #[instrument(skip(self, store, message))] async fn decrypt_olm_message( &mut self, store: &Store,