From b8cd9c6efa0c901d1c8d2714bc32999671b1469d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 13 Apr 2019 23:00:48 +0200 Subject: [PATCH] Add debug output Signed-off-by: Matthias Beyer --- lib/domain/libimagdiary/src/diaryid.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/domain/libimagdiary/src/diaryid.rs b/lib/domain/libimagdiary/src/diaryid.rs index 2055099c..832f39f8 100644 --- a/lib/domain/libimagdiary/src/diaryid.rs +++ b/lib/domain/libimagdiary/src/diaryid.rs @@ -212,12 +212,14 @@ impl FromStoreId for DiaryId { } let mut cmps = s.components().rev(); + trace!("Found components: {:?}", cmps); let (hour, minute, second) = next_component(&mut cmps).and_then(|time| { let mut time = time.split(":"); 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 second = time.next().and_then(|s| FromStr::from_str(s).ok()); + trace!("Found time = {:?}", time); debug!("Hour = {:?}", hour); debug!("Minute = {:?}", minute);