Skip to content

Commit

Permalink
Fixed error log
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
  • Loading branch information
omerap12 committed Jan 9, 2025
1 parent 8e26139 commit 64a921c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vertical-pod-autoscaler/pkg/recommender/model/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ func ResourcesAsResourceList(resources Resources, humanizeMemory bool, roundCPUM
roundedValues, err := RoundUpToScale(resourceAmount, roundCPUMillicores)
if err != nil {
klog.V(4).InfoS("Error rounding CPU value; leaving unchanged", "rawValue", resourceAmount, "scale", roundCPUMillicores, "error", err)
} else {
klog.V(4).InfoS("Successfully rounded CPU value", "rawValue", resourceAmount, "roundedValue", roundedValues)
}
klog.V(4).InfoS("Successfully rounded CPU value", "rawValue", resourceAmount, "roundedValue", roundedValues)
quantity = QuantityFromCPUAmount(roundedValues)
}
case ResourceMemory:
Expand Down

0 comments on commit 64a921c

Please sign in to comment.