Skip to content

Commit

Permalink
Improve logs for lock conflicts (#20554)
Browse files Browse the repository at this point in the history
Log the conflicted object as well as transactions digests
  • Loading branch information
mystenmark authored Dec 9, 2024
1 parent 7d772f3 commit 3772c60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/sui-core/src/execution_cache/object_locks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ impl ObjectLocks {
};

if prev_lock != new_lock {
debug!("lock conflict detected: {:?} != {:?}", prev_lock, new_lock);
debug!(
"lock conflict detected for {:?}: {:?} != {:?}",
obj_ref, prev_lock, new_lock
);
Err(SuiError::ObjectLockConflict {
obj_ref: *obj_ref,
pending_transaction: prev_lock,
Expand Down

0 comments on commit 3772c60

Please sign in to comment.