chore: add more planner debugging
This commit is contained in:
parent
0643648a94
commit
cd8d828c52
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue