Add debug output to Store::delete
This commit is contained in:
parent
79623e1db2
commit
fc854f3647
1 changed files with 3 additions and 0 deletions
|
@ -554,6 +554,8 @@ impl Store {
|
||||||
pub fn delete<S: IntoStoreId>(&self, id: S) -> Result<()> {
|
pub fn delete<S: IntoStoreId>(&self, id: S) -> Result<()> {
|
||||||
let id = try!(id.into_storeid()).with_base(self.path().clone());
|
let id = try!(id.into_storeid()).with_base(self.path().clone());
|
||||||
|
|
||||||
|
debug!("Deleting id: '{}'", id);
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut entries = match self.entries.write() {
|
let mut entries = match self.entries.write() {
|
||||||
Err(_) => return Err(SE::new(SEK::LockPoisoned, None))
|
Err(_) => return Err(SE::new(SEK::LockPoisoned, None))
|
||||||
|
@ -580,6 +582,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug!("Deleted");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue