Skip to content

Commit

Permalink
im: Fix logging for rollback-on-drop
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Sep 7, 2023
1 parent 0a1d268 commit 7e6be5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eyeball-im/src/vector/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ impl<T: Clone> ops::Deref for ObservableVectorTransaction<'_, T> {
impl<T: Clone> Drop for ObservableVectorTransaction<'_, T> {
fn drop(&mut self) {
#[cfg(feature = "tracing")]
tracing::debug!("rollback (drop)");
if !self.batch.is_empty() {
tracing::debug!("rollback (drop)");
}
}
}

Expand Down

0 comments on commit 7e6be5e

Please sign in to comment.