From 45cb122f53448adf837ab6aacfbd0acdf090afba Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 15 Feb 2019 18:26:35 +0100 Subject: [PATCH] Add debug output Signed-off-by: Matthias Beyer --- lib/core/libimagstore/src/file_abstraction/fs.rs | 2 ++ lib/core/libimagstore/src/file_abstraction/inmemory.rs | 2 ++ lib/domain/libimagcontact/src/contact.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/lib/core/libimagstore/src/file_abstraction/fs.rs b/lib/core/libimagstore/src/file_abstraction/fs.rs index 0a4fecda..f68d2aa1 100644 --- a/lib/core/libimagstore/src/file_abstraction/fs.rs +++ b/lib/core/libimagstore/src/file_abstraction/fs.rs @@ -182,7 +182,9 @@ impl PathIterBuilder for WalkDirPathIterBuilder { } fn in_collection(&mut self, c: &str) { + debug!("Altering PathIterBuilder path with: {:?}", c); self.basepath.push(c); + debug!(" -> path : {:?}", self.basepath); } } diff --git a/lib/core/libimagstore/src/file_abstraction/inmemory.rs b/lib/core/libimagstore/src/file_abstraction/inmemory.rs index 66655be6..292aea15 100644 --- a/lib/core/libimagstore/src/file_abstraction/inmemory.rs +++ b/lib/core/libimagstore/src/file_abstraction/inmemory.rs @@ -211,7 +211,9 @@ impl PathIterBuilder for InMemPathIterBuilder { } fn in_collection(&mut self, c: &str) { + debug!("Altering PathIterBuilder path with: {:?}", c); self.0.retain(|p| p.starts_with(c)); + debug!(" -> path : {:?}", self.0); } } diff --git a/lib/domain/libimagcontact/src/contact.rs b/lib/domain/libimagcontact/src/contact.rs index 69273c52..e5fb8851 100644 --- a/lib/domain/libimagcontact/src/contact.rs +++ b/lib/domain/libimagcontact/src/contact.rs @@ -52,6 +52,7 @@ impl Contact for Entry { } fn deser(&self) -> Result { + trace!("Reading header of {:?}", self.get_location()); let data = self .get_header() .read("contact.data")?