Add debug output

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-10 22:46:08 +01:00
parent c98ec920a3
commit 334e9e3954
1 changed files with 12 additions and 2 deletions

View File

@ -304,6 +304,8 @@ fn today(rt: &Runtime, future: bool) {
.count() != 0;
debug!("Any today relevant = {}", any_today_relevant);
debug!("relevant = {:?}", relevant);
if !any_today_relevant {
let n = rt
.cli()
@ -367,8 +369,16 @@ fn today(rt: &Runtime, future: bool) {
.next_instance_date()
.map_err_trace_exit_unwrap()
.map(|date| {
habit.instance_exists_for_date(&date)
.map_err_trace_exit_unwrap()
let instance_exists = habit
.instance_exists_for_date(&date)
.map_err_trace_exit_unwrap();
debug!("instance exists for {:?} for {:?} = {:?}",
habit.get_location().local_display_string(),
date,
instance_exists);
instance_exists
})
.unwrap_or(false)
})