diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 17:10:18 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-06-09 15:41:42 +0200 |
commit | 4a134144d124b7e2bb2812255ef00e44671730a9 (patch) | |
tree | cadf2488e59169fd8d465bf6dbb48866365bf46a /libimagdiary | |
parent | cf6d03ca0354287229c070bfdd0d3c500e347678 (diff) |
Add debugging in lib-iter
Diffstat (limited to 'libimagdiary')
-rw-r--r-- | libimagdiary/src/iter.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libimagdiary/src/iter.rs b/libimagdiary/src/iter.rs index ce7aec78..1b2b16e5 100644 --- a/libimagdiary/src/iter.rs +++ b/libimagdiary/src/iter.rs @@ -82,15 +82,18 @@ impl<'a> Iterator for DiaryEntryIterator<'a> { debug!("Seems to be in diary: {:?}", next); let id = DiaryId::from_storeid(&next); if id.is_none() { + debug!("Couldn't parse {:?} into DiaryId", next); continue; } let id = id.unwrap(); + debug!("Success parsing id = {:?}", id); let y = match self.year { None => true, Some(y) => y == id.year() }; let m = match self.month { None => true, Some(m) => m == id.month() }; let d = match self.day { None => true, Some(d) => d == id.day() }; if y && m && d { + debug!("Return = {:?}", id); return Some(self .store .retrieve(next) |