chore: reduce log spam from planner, if no plan active (#11866)
This commit is contained in:
parent
b09b0740db
commit
d406b81be8
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ func (lp *Loadpoint) plannerActive() (active bool) {
|
|||
}()
|
||||
|
||||
planTime := lp.EffectivePlanTime()
|
||||
if planTime.IsZero() {
|
||||
return false
|
||||
}
|
||||
if lp.clock.Until(planTime) < 0 && !lp.planActive {
|
||||
lp.deletePlan()
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue