Skip to content

Commit b08b8c8

Browse files
committed
log payload hash after successfully saving commit
1 parent 7c7dbdb commit b08b8c8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

xmtp_mls/src/storage/encrypted_store/group_intent.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ impl DbConnection {
197197
staged_commit: Option<Vec<u8>>,
198198
published_in_epoch: i64,
199199
) -> Result<(), StorageError> {
200+
let payload_hash_clone = payload_hash.clone();
200201
let res = self.raw_query(|conn| {
201202
diesel::update(dsl::group_intents)
202203
.filter(dsl::id.eq(intent_id))
@@ -222,7 +223,14 @@ impl DbConnection {
222223
0 => Err(StorageError::NotFound(format!(
223224
"ToPublish intent {intent_id} for publish"
224225
))),
225-
_ => Ok(()),
226+
_ => {
227+
tracing::info!("Set intent {intent_id} to published");
228+
tracing::info!(
229+
"intent {intent_id} that was just saved to DB has payload_hash: {:?}",
230+
payload_hash_clone
231+
);
232+
Ok(())
233+
}
226234
}
227235
}
228236

0 commit comments

Comments
 (0)