From 13e80445ae47c69004c7b900cf62df1ae184a084 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 4 Jun 2017 19:05:35 +0200 Subject: [PATCH] Add debug output to Store::get --- libimagstore/src/store.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 5a2b2262..a842cd0b 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -406,6 +406,8 @@ impl Store { pub fn get<'a, S: IntoStoreId + Clone>(&'a self, id: S) -> Result>> { 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))