Add debug output

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-15 18:26:35 +01:00
parent 0916c92a18
commit 45cb122f53
3 changed files with 5 additions and 0 deletions

View file

@ -182,7 +182,9 @@ impl PathIterBuilder for WalkDirPathIterBuilder {
} }
fn in_collection(&mut self, c: &str) { fn in_collection(&mut self, c: &str) {
debug!("Altering PathIterBuilder path with: {:?}", c);
self.basepath.push(c); self.basepath.push(c);
debug!(" -> path : {:?}", self.basepath);
} }
} }

View file

@ -211,7 +211,9 @@ impl PathIterBuilder for InMemPathIterBuilder {
} }
fn in_collection(&mut self, c: &str) { fn in_collection(&mut self, c: &str) {
debug!("Altering PathIterBuilder path with: {:?}", c);
self.0.retain(|p| p.starts_with(c)); self.0.retain(|p| p.starts_with(c));
debug!(" -> path : {:?}", self.0);
} }
} }

View file

@ -52,6 +52,7 @@ impl Contact for Entry {
} }
fn deser(&self) -> Result<DeserVcard> { fn deser(&self) -> Result<DeserVcard> {
trace!("Reading header of {:?}", self.get_location());
let data = self let data = self
.get_header() .get_header()
.read("contact.data")? .read("contact.data")?