Jelajahi Sumber

Add logging to confirm behavior

Niko Kovacevic 6 tahun lalu
induk
melakukan
9bc0d87e36
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      costmodel/router.go

+ 5 - 1
costmodel/router.go

@@ -142,7 +142,11 @@ func parsePercentString(percentStr string) (float64, error) {
 	if err != nil {
 		return 0.0, err
 	}
-	return discount * 0.01, nil
+	discount *= 0.01
+
+	klog.V(1).Infof("parsePercentString(%s) = %f", percentStr, discount)
+
+	return discount, nil
 }
 
 // parseDuration converts a Prometheus-style duration string into a Duration