chore: remove debug logging (#15969)
This commit is contained in:
parent
515d864216
commit
4c717c80af
3 changed files with 0 additions and 19 deletions
|
|
@ -1488,9 +1488,6 @@ func (lp *Loadpoint) publishChargeProgress() {
|
|||
// workaround for Go-E resetting during disconnect, see
|
||||
// https://github.com/evcc-io/evcc/issues/5092
|
||||
if f > lp.chargedAtStartup {
|
||||
{ // TODO remove
|
||||
lp.log.DEBUG.Printf("!! session: chargeRater.chargedEnergy=%.1f - chargedAtStartup=%.1f", f, lp.chargedAtStartup)
|
||||
}
|
||||
added, addedGreen := lp.sessionEnergy.Update(f - lp.chargedAtStartup)
|
||||
if telemetry.Enabled() && added > 0 {
|
||||
telemetry.UpdateEnergy(added, addedGreen)
|
||||
|
|
|
|||
|
|
@ -69,8 +69,6 @@ func (lp *Loadpoint) ActivePhases() int {
|
|||
// sanity check - we should not assume less active phases than actually measured
|
||||
if measured > 0 && active < measured {
|
||||
lp.log.WARN.Printf("phase mismatch between %dp measured for %dp vehicle and %dp charger", measured, vehicle, physical)
|
||||
// } else {
|
||||
// lp.log.DEBUG.Printf("!! active phases: %dp = min(%dp measured %dp vehicle %dp physical %dp charger)", active, measured, vehicle, physical, charger)
|
||||
}
|
||||
|
||||
return active
|
||||
|
|
|
|||
|
|
@ -63,9 +63,6 @@ func (lp *Loadpoint) stopSession() {
|
|||
}
|
||||
|
||||
if chargedEnergy := lp.getChargedEnergy() / 1e3; chargedEnergy > s.ChargedEnergy {
|
||||
{ // TODO remove
|
||||
lp.log.DEBUG.Printf("!! session: chargedEnergy=%.1f > chargedEnergy=%.1f", chargedEnergy, s.ChargedEnergy)
|
||||
}
|
||||
lp.sessionEnergy.Update(chargedEnergy)
|
||||
}
|
||||
|
||||
|
|
@ -77,17 +74,6 @@ func (lp *Loadpoint) stopSession() {
|
|||
s.ChargedEnergy = lp.sessionEnergy.TotalWh() / 1e3
|
||||
s.ChargeDuration = &lp.chargeDuration
|
||||
|
||||
{ // TODO remove
|
||||
var meterStart, meterStop float64
|
||||
if s.MeterStart != nil {
|
||||
meterStart = *s.MeterStart
|
||||
}
|
||||
if s.MeterStop != nil {
|
||||
meterStop = *s.MeterStop
|
||||
}
|
||||
lp.log.DEBUG.Printf("!! session: start=%.3f stop=%.3f chargedEnergy=%.3f", meterStart, meterStop, s.ChargedEnergy)
|
||||
}
|
||||
|
||||
lp.db.Persist(s)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue