Add debug output to Store::delete

This commit is contained in:
Matthias Beyer 2017-06-04 19:12:03 +02:00
parent 79623e1db2
commit fc854f3647

View file

@ -554,6 +554,8 @@ impl Store {
pub fn delete<S: IntoStoreId>(&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(())
}