From 078a75ea27262127891ea18192eb739d65f08e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 9 Nov 2022 11:54:52 +0100 Subject: [PATCH] chore(crypto): Log the protocols we accepted for a SAS verification --- .../matrix-sdk-crypto/src/verification/sas/inner_sas.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/matrix-sdk-crypto/src/verification/sas/inner_sas.rs b/crates/matrix-sdk-crypto/src/verification/sas/inner_sas.rs index de84dd550..9e6d839a4 100644 --- a/crates/matrix-sdk-crypto/src/verification/sas/inner_sas.rs +++ b/crates/matrix-sdk-crypto/src/verification/sas/inner_sas.rs @@ -20,6 +20,7 @@ use ruma::{ events::key::verification::{cancel::CancelCode, ShortAuthenticationString}, TransactionId, UserId, }; +use tracing::trace; use super::{ sas_state::{ @@ -182,6 +183,13 @@ impl InnerSas { if let InnerSas::Started(s) = self { let sas = s.into_we_accepted(methods); let content = sas.as_content(); + + trace!( + flow_id = sas.verification_flow_id.as_str(), + accepted_protocols = ?sas.state.accepted_protocols, + "Accepted a SAS verification" + ); + Some((InnerSas::WeAccepted(sas), content)) } else { None