From 2effa19d63fc367c1331845d42dd1d44dd67964c Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 20 Apr 2025 12:40:21 +0200 Subject: [PATCH] Revert "chore: follow-up to #20183, add trace log (#20407)" This reverts commit e573b9546f10e5363ccf7e47cd4bdab9e08e0c72. --- core/circuit/circuit.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/circuit/circuit.go b/core/circuit/circuit.go index d8e392262..3e801e053 100644 --- a/core/circuit/circuit.go +++ b/core/circuit/circuit.go @@ -333,8 +333,6 @@ func (c *Circuit) ValidatePower(old, new float64, charging bool) float64 { } if new > capped { c.log.DEBUG.Printf("validate power: %.5gW + (%.5gW -> %.5gW) > %.5gW capped at %.5gW", c.power, old, new, maxPower, capped) - } else { - c.log.TRACE.Printf("validate power: %.5gW + (%.5gW -> %.5gW) <= %.5gW ok", c.power, old, new, maxPower) } new = capped } @@ -359,10 +357,7 @@ func (c *Circuit) ValidateCurrent(old, new float64, charging bool) float64 { } if new > capped { c.log.DEBUG.Printf("validate current: %.3gA + (%.3gA -> %.3gA) > %.3gA capped at %.3gA", c.current, old, new, maxCurrent, capped) - } else { - c.log.TRACE.Printf("validate current: %.3gA + (%.3gA -> %.3gA) <= %.3gA ok", c.current, old, new, maxCurrent) } - new = capped }