From b61547c2d1d9fe56b7c7017170af6d5e8b678610 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 8 Feb 2018 14:23:04 +0100 Subject: [PATCH] Add debug output what is about to be done --- bin/domain/imag-habit/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/domain/imag-habit/src/main.rs b/bin/domain/imag-habit/src/main.rs index a3ef5652..d9263dd2 100644 --- a/bin/domain/imag-habit/src/main.rs +++ b/bin/domain/imag-habit/src/main.rs @@ -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); }