Skip to content

Commit

Permalink
chore: improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 28, 2024
1 parent f6f4e30 commit f73e064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/loadpoint_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
}

planStart = planner.Start(plan)
lp.log.DEBUG.Printf("plan: charge %v starting at %v until %v (%spower: %.0fW, avg cost: %.3f)",
lp.log.DEBUG.Printf("plan: charge %v between %v until %v (%spower: %.0fW, avg cost: %.3f)",
planner.Duration(plan).Round(time.Second), planStart.Round(time.Second).Local(), planTime.Round(time.Second).Local(), overrun,
maxPower, planner.AverageCost(plan))

Expand Down Expand Up @@ -162,7 +162,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
lp.log.DEBUG.Printf("plan: continuing for remaining %v", requiredDuration.Round(time.Second))
return true
case lp.clock.Until(planStart) < smallGapDuration:
lp.log.DEBUG.Printf("plan: will re-start shortly, continuing for remaining %v", lp.clock.Until(planStart).Round(time.Second))
lp.log.DEBUG.Printf("plan: avoid re-start within %v, continuing for remaining %v", smallGapDuration, lp.clock.Until(planStart).Round(time.Second))
return true
}
}
Expand Down

0 comments on commit f73e064

Please sign in to comment.