Skip to content

Commit

Permalink
log payload hash after successfully saving commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Dec 13, 2024
1 parent 7c7dbdb commit b08b8c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xmtp_mls/src/storage/encrypted_store/group_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ impl DbConnection {
staged_commit: Option<Vec<u8>>,
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))
Expand All @@ -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(())
}
}
}

Expand Down

0 comments on commit b08b8c8

Please sign in to comment.