Add debug output to Store::retrieve
This commit is contained in:
parent
c4584bf1ca
commit
6cb5300cd9
1 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,7 @@ impl Store {
|
||||||
///
|
///
|
||||||
pub fn retrieve<'a, S: IntoStoreId>(&'a self, id: S) -> Result<FileLockEntry<'a>> {
|
pub fn retrieve<'a, S: IntoStoreId>(&'a self, id: S) -> Result<FileLockEntry<'a>> {
|
||||||
let id = try!(id.into_storeid()).with_base(self.path().clone());
|
let id = try!(id.into_storeid()).with_base(self.path().clone());
|
||||||
|
debug!("Retrieving id: '{}'", id);
|
||||||
let entry = try!({
|
let entry = try!({
|
||||||
self.entries
|
self.entries
|
||||||
.write()
|
.write()
|
||||||
|
@ -388,6 +389,7 @@ impl Store {
|
||||||
.map_err_into(SEK::RetrieveCallError)
|
.map_err_into(SEK::RetrieveCallError)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
debug!("Constructing FileLockEntry: '{}'", id);
|
||||||
Ok(FileLockEntry::new(self, entry))
|
Ok(FileLockEntry::new(self, entry))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue