summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-04-13 23:00:48 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-04-14 00:16:47 +0200
commitb8cd9c6efa0c901d1c8d2714bc32999671b1469d (patch)
tree6ca69c564678b59beab8c04bfa2cc8b8f141b14d
parentaa3fdb88d51b53fe613decb38e99f726eae094e1 (diff)
downloadimag-b8cd9c6efa0c901d1c8d2714bc32999671b1469d.zip
imag-b8cd9c6efa0c901d1c8d2714bc32999671b1469d.tar.gz
Add debug output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagdiary/src/diaryid.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/domain/libimagdiary/src/diaryid.rs b/lib/domain/libimagdiary/src/diaryid.rs
index 2055099..832f39f 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);