summaryrefslogtreecommitdiffstats
path: root/src/task.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-03-26 18:18:07 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-03-26 18:18:07 +0100
commit73d274c380e67e60dd46d58224c8dc131a192c26 (patch)
treea5e502fc7ff7cb72653996c8edb070784196ccd9 /src/task.rs
parent14d77ca15d2f97ddaee6507fdfb9ed544be4189d (diff)
Add some trace!()
Diffstat (limited to 'src/task.rs')
-rw-r--r--src/task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/task.rs b/src/task.rs
index c32206a..7303a14 100644
--- a/src/task.rs
+++ b/src/task.rs
@@ -184,10 +184,12 @@ fn get_desc(map: &BTreeMap<String, Value>) -> String {
fn get_entry(map: &BTreeMap<String, Value>) -> Result<DateTime<UTC>> {
if let Some(s) = map.get("entry").unwrap().as_string() {
+ trace!("Found 'entry': {:?}", s);
String::from(s)
.parse::<DateTime<UTC>>()
.map_err(|e| TaskError::new(TaskErrorKind::ParserError, Some(Box::new(e))))
} else {
+ trace!("No 'entry'");
Err(TaskError::new(TaskErrorKind::ParserError, None))
}
}