Add debug output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
c98ec920a3
commit
334e9e3954
1 changed files with 12 additions and 2 deletions
|
@ -304,6 +304,8 @@ fn today(rt: &Runtime, future: bool) {
|
||||||
.count() != 0;
|
.count() != 0;
|
||||||
|
|
||||||
debug!("Any today relevant = {}", any_today_relevant);
|
debug!("Any today relevant = {}", any_today_relevant);
|
||||||
|
debug!("relevant = {:?}", relevant);
|
||||||
|
|
||||||
if !any_today_relevant {
|
if !any_today_relevant {
|
||||||
let n = rt
|
let n = rt
|
||||||
.cli()
|
.cli()
|
||||||
|
@ -367,8 +369,16 @@ fn today(rt: &Runtime, future: bool) {
|
||||||
.next_instance_date()
|
.next_instance_date()
|
||||||
.map_err_trace_exit_unwrap()
|
.map_err_trace_exit_unwrap()
|
||||||
.map(|date| {
|
.map(|date| {
|
||||||
habit.instance_exists_for_date(&date)
|
let instance_exists = habit
|
||||||
.map_err_trace_exit_unwrap()
|
.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)
|
.unwrap_or(false)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue