Use trace_error

This commit is contained in:
Raphael Nestler 2016-11-19 23:06:02 +01:00
parent c8710a4d13
commit 2c16171d65

View file

@ -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;
}