diff --git a/taskchampion/src/taskdb/undo.rs b/taskchampion/src/taskdb/undo.rs index f7636ebde..57bba0fa2 100644 --- a/taskchampion/src/taskdb/undo.rs +++ b/taskchampion/src/taskdb/undo.rs @@ -1,5 +1,6 @@ use super::apply; use crate::storage::{ReplicaOp, StorageTxn}; +use log::{debug, trace}; /// Undo local operations until an UndoPoint. pub(super) fn undo(txn: &mut dyn StorageTxn) -> anyhow::Result { @@ -12,8 +13,10 @@ pub(super) fn undo(txn: &mut dyn StorageTxn) -> anyhow::Result { if op == ReplicaOp::UndoPoint { break; } + debug!("Reversing operation {:?}", op); let rev_ops = op.reverse_ops(); for op in rev_ops { + trace!("Applying reversed operation {:?}", op); apply::apply_op(txn, &op)?; applied = true; }