Browse Source

Fix a warning using Printf without any formatting

Matthew L Daniel 7 năm trước cách đây
mục cha
commit
900c375231
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -100,7 +100,7 @@ func (a *Accesses) Healthz(w http.ResponseWriter, r *http.Request, ps httprouter
 func (a *Accesses) recordPrices() {
 func (a *Accesses) recordPrices() {
 	go func() {
 	go func() {
 		for {
 		for {
-			log.Printf("Recording prices...")
+			log.Print("Recording prices...")
 			data, err := costModel.ComputeCostData(a.PrometheusClient, a.KubeClientSet, a.Cloud, "1h")
 			data, err := costModel.ComputeCostData(a.PrometheusClient, a.KubeClientSet, a.Cloud, "1h")
 			if err != nil {
 			if err != nil {
 				log.Printf("Error in price recording: " + err.Error())
 				log.Printf("Error in price recording: " + err.Error())