Add debug output to Store::retrieve

This commit is contained in:
Matthias Beyer 2017-06-04 19:04:42 +02:00
parent c4584bf1ca
commit 6cb5300cd9
1 changed files with 2 additions and 0 deletions

View File

@ -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))
} }