Add debug output what is about to be done

This commit is contained in:
Matthias Beyer 2018-02-08 14:23:04 +01:00
parent 2b26db70ed
commit b61547c2d1

View file

@ -124,6 +124,12 @@ fn create(rt: &Runtime) {
},
};
debug!("Building habit: name = {name}, basedate = {date}, recurr = {recu}, comment = {comm}",
name = name,
date = date,
recu = recu,
comm = comm);
let hb = HabitBuilder::default()
.with_name(name)
.with_basedate(parsedate(date, "date"))
@ -136,6 +142,8 @@ fn create(rt: &Runtime) {
hb
};
debug!("Builder = {:?}", hb);
hb.build(rt.store()).map_err_trace_exit_unwrap(1);
}