diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-02-15 18:26:35 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-02-15 19:05:09 +0100 |
commit | 45cb122f53448adf837ab6aacfbd0acdf090afba (patch) | |
tree | de0c1fcc0c5e55f207db4045ed8b6d0c602be84f | |
parent | 0916c92a18c79b0bcd9efc5f887c24ba4f787741 (diff) |
Add debug output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/core/libimagstore/src/file_abstraction/fs.rs | 2 | ||||
-rw-r--r-- | lib/core/libimagstore/src/file_abstraction/inmemory.rs | 2 | ||||
-rw-r--r-- | lib/domain/libimagcontact/src/contact.rs | 1 |
3 files changed, 5 insertions, 0 deletions
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<DeserVcard> { + trace!("Reading header of {:?}", self.get_location()); let data = self .get_header() .read("contact.data")? |