From 62b33839b1a46f320f7c107cb70549253d0b8068 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 3 Mar 2025 13:43:52 +0100 Subject: [PATCH] chore: remove temporary debug messages (#19372) --- core/loadpoint.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 5efd2422b..456377613 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1222,8 +1222,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in availablePower := lp.chargePower - sitePower scalable := (sitePower > 0 || !lp.enabled) && activePhases > 1 && lp.phasesConfigured < 3 - lp.log.DEBUG.Printf("!! pvScalePhases DOWN activePhases: %d, available power: %.0fW, scalable: %t", activePhases, availablePower, scalable) - // scale down phases if targetCurrent := powerToCurrent(availablePower, activePhases); targetCurrent < minCurrent && scalable { lp.log.DEBUG.Printf("available power %.0fW < %.0fW min %dp threshold", availablePower, float64(activePhases)*Voltage*minCurrent, activePhases) @@ -1253,8 +1251,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in target1pCurrent := powerToCurrent(availablePower, 1) scalable = maxPhases > 1 && phases < maxPhases && target1pCurrent > maxCurrent - lp.log.DEBUG.Printf("!! pvScalePhases UP maxPhases: %d, available power: %.0fW, scalable: %t", maxPhases, availablePower, scalable) - // scale up phases if targetCurrent := powerToCurrent(availablePower, maxPhases); targetCurrent >= minCurrent && scalable { lp.log.DEBUG.Printf("available power %.0fW > %.0fW min %dp threshold", availablePower, 3*Voltage*minCurrent, maxPhases) @@ -1285,8 +1281,6 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) in lp.resetPhaseTimer() } - lp.log.DEBUG.Println("!! pvScalePhases EXIT") - return 0 } @@ -1355,7 +1349,6 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower, batteryBoostPo if lp.hasPhaseSwitching() && lp.phaseSwitchCompleted() { scaledTo = lp.pvScalePhases(sitePower, minCurrent, maxCurrent) } else if lp.GetBatteryBoost() != boostDisabled { - lp.log.DEBUG.Printf("!! pvScalePhases phasesSwitched: %v, %v", lp.phasesSwitched, time.Since(lp.phasesSwitched)) } // calculate target charge current from delta power and actual current