Просмотр исходного кода

Label the RAMCost log output

Otherwise it's just a number that shows up, without context
Matthew L Daniel 7 лет назад
Родитель
Сommit
a9545b4889
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      costmodel/costmodel.go

+ 1 - 1
costmodel/costmodel.go

@@ -282,7 +282,7 @@ func getNodeCost(clientset *kubernetes.Clientset, cloud costAnalyzerCloud.Provid
 			cnode.VCPUCost = fmt.Sprintf("%f", cpuPrice)
 			cnode.RAMCost = fmt.Sprintf("%f", ramPrice)
 			cnode.RAMBytes = fmt.Sprintf("%f", ram)
-			log.Printf(cnode.RAMCost)
+			log.Printf("Node \"%s\" RAM Cost := %v", name, cnode.RAMCost)
 		}
 		nodes[name] = cnode
 	}