From b08b8c8cc096d18366cafc4f4426e27ddc047bf3 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Fri, 13 Dec 2024 15:11:01 -0800 Subject: [PATCH] log payload hash after successfully saving commit --- xmtp_mls/src/storage/encrypted_store/group_intent.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xmtp_mls/src/storage/encrypted_store/group_intent.rs b/xmtp_mls/src/storage/encrypted_store/group_intent.rs index 2cc872a3c..08e08218b 100644 --- a/xmtp_mls/src/storage/encrypted_store/group_intent.rs +++ b/xmtp_mls/src/storage/encrypted_store/group_intent.rs @@ -197,6 +197,7 @@ impl DbConnection { staged_commit: Option>, published_in_epoch: i64, ) -> Result<(), StorageError> { + let payload_hash_clone = payload_hash.clone(); let res = self.raw_query(|conn| { diesel::update(dsl::group_intents) .filter(dsl::id.eq(intent_id)) @@ -222,7 +223,14 @@ impl DbConnection { 0 => Err(StorageError::NotFound(format!( "ToPublish intent {intent_id} for publish" ))), - _ => Ok(()), + _ => { + tracing::info!("Set intent {intent_id} to published"); + tracing::info!( + "intent {intent_id} that was just saved to DB has payload_hash: {:?}", + payload_hash_clone + ); + Ok(()) + } } }