Skip to content

Commit beaa695

Browse files
committed
chore: reduce logging
1 parent 7a5ea92 commit beaa695

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

scheduler/miners.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ func (s *MinerScheduler) getEffecivePowerLimit(ctx context.Context) float64 {
128128
availablePower = info.PhotovoltaicPower // in kW
129129
}
130130
powerLimit := s.config.MinersPowerLimit // in kW
131-
s.logger.Printf("PV Power Control: Available PV power: %.2f kW, Miners power limit: %.2f kW", availablePower, powerLimit)
132131

133132
// Use the minimum of available PV power and configured power limit
134133
effectiveLimit := powerLimit
@@ -178,7 +177,6 @@ func (s *MinerScheduler) manageMiners(ctx context.Context, currentPrice float64)
178177
effectiveLimit = s.config.MinersPowerLimit
179178
}
180179
totalPower = s.calculateTotalPowerConsumption(minersList)
181-
s.logger.Printf("Current total power consumption: %.2f kW, Effective limit: %.2f kW", totalPower, effectiveLimit)
182180

183181
// Standard price-based control
184182
var wg sync.WaitGroup
@@ -346,7 +344,6 @@ func (s *MinerScheduler) runStateCheck(ctx context.Context) error {
346344
if usePowerControl {
347345
effectiveLimit = s.getEffecivePowerLimit(ctx)
348346
}
349-
s.logger.Printf("Current total power consumption: %.2f kW, Effective limit: %.2f kW", totalPower, effectiveLimit)
350347

351348
var wg sync.WaitGroup
352349
var powerMu sync.Mutex // Mutex to protect totalPower updates

scheduler/pricing.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ func (s *MinerScheduler) getCurrentPrice(ctx context.Context) (float64, error) {
186186
}
187187

188188
if price, found := marketData.LookupPriceByTime(now); found {
189-
s.logger.Printf("Price found: %.2f EUR/MWh", price)
190189
return price, nil
191190
}
192191

0 commit comments

Comments
 (0)