Add debug output

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-04-13 23:00:48 +02:00
parent aa3fdb88d5
commit b8cd9c6efa

View file

@ -212,12 +212,14 @@ impl FromStoreId for DiaryId {
} }
let mut cmps = s.components().rev(); let mut cmps = s.components().rev();
trace!("Found components: {:?}", cmps);
let (hour, minute, second) = next_component(&mut cmps).and_then(|time| { let (hour, minute, second) = next_component(&mut cmps).and_then(|time| {
let mut time = time.split(":"); let mut time = time.split(":");
let hour = time.next().and_then(|s| FromStr::from_str(s).ok()); let hour = time.next().and_then(|s| FromStr::from_str(s).ok());
let minute = time.next().and_then(|s| FromStr::from_str(s).ok()); let minute = time.next().and_then(|s| FromStr::from_str(s).ok());
let second = time.next().and_then(|s| FromStr::from_str(s).ok()); let second = time.next().and_then(|s| FromStr::from_str(s).ok());
trace!("Found time = {:?}", time);
debug!("Hour = {:?}", hour); debug!("Hour = {:?}", hour);
debug!("Minute = {:?}", minute); debug!("Minute = {:?}", minute);