chore: add more planner debugging

This commit is contained in:
andig 2026-01-23 17:47:39 +01:00
parent 0643648a94
commit cd8d828c52

View file

@ -113,6 +113,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
planTime := lp.EffectivePlanTime()
if planTime.IsZero() {
lp.log.DEBUG.Println("!! plan: plan time zero")
return false
}
@ -131,6 +132,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
if lp.planActive && isSocBased && goal == 100 {
return true
}
lp.log.DEBUG.Println("!! plan: required duration 0")
lp.finishPlan()
return false
@ -140,6 +142,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
plan = lp.GetPlan(planTime, requiredDuration, strategy.Precondition, strategy.Continuous)
if plan == nil {
lp.log.DEBUG.Println("!! plan: plan nil")
return false
}