Add debug output to Store::get

This commit is contained in:
Matthias Beyer 2017-06-04 19:05:35 +02:00
parent 6cb5300cd9
commit 13e80445ae

View file

@ -406,6 +406,8 @@ impl Store {
pub fn get<'a, S: IntoStoreId + Clone>(&'a self, id: S) -> Result<Option<FileLockEntry<'a>>> {
let id = try!(id.into_storeid()).with_base(self.path().clone());
debug!("Getting id: '{}'", id);
let exists = try!(id.exists()) || try!(self.entries
.read()
.map(|map| map.contains_key(&id))