From fc854f3647ea8b22b0d35804c8b24241c9333490 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 4 Jun 2017 19:12:03 +0200 Subject: [PATCH] Add debug output to Store::delete --- libimagstore/src/store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 588a8b78..2f2867a3 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -554,6 +554,8 @@ impl Store { pub fn delete(&self, id: S) -> Result<()> { let id = try!(id.into_storeid()).with_base(self.path().clone()); + debug!("Deleting id: '{}'", id); + { let mut entries = match self.entries.write() { Err(_) => return Err(SE::new(SEK::LockPoisoned, None)) @@ -580,6 +582,7 @@ impl Store { } } + debug!("Deleted"); Ok(()) }