diff --git a/libimagdiary/src/iter.rs b/libimagdiary/src/iter.rs index 6a50819d..de849872 100644 --- a/libimagdiary/src/iter.rs +++ b/libimagdiary/src/iter.rs @@ -30,6 +30,7 @@ use entry::Entry as DiaryEntry; use error::DiaryError as DE; use error::DiaryErrorKind as DEK; use result::Result; +use libimagerror::trace::trace_error; /// A iterator for iterating over diary entries pub struct DiaryEntryIterator<'a> { @@ -101,6 +102,7 @@ impl<'a> Iterator for DiaryEntryIterator<'a> { let id = match DiaryId::from_storeid(&next) { Ok(i) => i, Err(e) => { + trace_error(&e); debug!("Couldn't parse {:?} into DiaryId: {:?}", next, e); continue; }