Skip to content

Commit f17e50f

Browse files
authored
chore: fix vmsizerecommenderclient log (#1266)
2 parents 938a947 + 22fa41d commit f17e50f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/clients/azure/compute/vmsizerecommenderclient.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ func (c *AttributeBasedVMSizeRecommenderClient) GenerateAttributeBasedRecommenda
120120
latency := time.Since(startTime).Milliseconds()
121121
if err != nil {
122122
klog.ErrorS(err, "Failed to generate VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency)
123+
} else {
124+
klog.V(2).InfoS("Generated VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency)
123125
}
124-
klog.V(2).InfoS("Generated VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency)
125126
}()
126127

127128
resp, err := c.httpClient.Do(httpReq)

0 commit comments

Comments
 (0)