소스 검색

Add logging to confirm behavior

Niko Kovacevic 6 년 전
부모
커밋
9bc0d87e36
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      costmodel/router.go

+ 5 - 1
costmodel/router.go

@@ -142,7 +142,11 @@ func parsePercentString(percentStr string) (float64, error) {
 	if err != nil {
 	if err != nil {
 		return 0.0, err
 		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
 // parseDuration converts a Prometheus-style duration string into a Duration