Explorar el Código

Merge pull request #632 from kubecost/niko/fixtests

Fix formatting directive breaking costmodel tests
Niko Kovacevic hace 5 años
padre
commit
de5920f9fc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pkg/costmodel/metrics.go

+ 2 - 2
pkg/costmodel/metrics.go

@@ -802,10 +802,10 @@ func (cmme *CostModelMetricsEmitter) Start() bool {
 				// actual errors)
 				if prom.IsErrorCollection(err) {
 					if ec, ok := err.(prom.QueryErrorCollection); ok {
-						klog.V(1).Info("Error in price recording: %d errors occurred", len(ec.Errors()))
+						log.Errorf("Error in price recording: %d errors occurred", len(ec.Errors()))
 					}
 				} else {
-					klog.V(1).Info("Error in price recording: " + err.Error())
+					log.Errorf("Error in price recording: " + err.Error())
 				}
 
 				// zero the for loop so the time.Sleep will still work