Use trace_error
This commit is contained in:
parent
c8710a4d13
commit
2c16171d65
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ use entry::Entry as DiaryEntry;
|
||||||
use error::DiaryError as DE;
|
use error::DiaryError as DE;
|
||||||
use error::DiaryErrorKind as DEK;
|
use error::DiaryErrorKind as DEK;
|
||||||
use result::Result;
|
use result::Result;
|
||||||
|
use libimagerror::trace::trace_error;
|
||||||
|
|
||||||
/// A iterator for iterating over diary entries
|
/// A iterator for iterating over diary entries
|
||||||
pub struct DiaryEntryIterator<'a> {
|
pub struct DiaryEntryIterator<'a> {
|
||||||
|
@ -101,6 +102,7 @@ impl<'a> Iterator for DiaryEntryIterator<'a> {
|
||||||
let id = match DiaryId::from_storeid(&next) {
|
let id = match DiaryId::from_storeid(&next) {
|
||||||
Ok(i) => i,
|
Ok(i) => i,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
trace_error(&e);
|
||||||
debug!("Couldn't parse {:?} into DiaryId: {:?}", next, e);
|
debug!("Couldn't parse {:?} into DiaryId: {:?}", next, e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue