diff --git a/pkg/clients/azure/compute/vmsizerecommenderclient.go b/pkg/clients/azure/compute/vmsizerecommenderclient.go index 1133a98fc..0c9db0904 100644 --- a/pkg/clients/azure/compute/vmsizerecommenderclient.go +++ b/pkg/clients/azure/compute/vmsizerecommenderclient.go @@ -120,8 +120,9 @@ func (c *AttributeBasedVMSizeRecommenderClient) GenerateAttributeBasedRecommenda latency := time.Since(startTime).Milliseconds() if err != nil { klog.ErrorS(err, "Failed to generate VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency) + } else { + klog.V(2).InfoS("Generated VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency) } - klog.V(2).InfoS("Generated VM size recommendations", "subscriptionID", req.SubscriptionId, "location", req.Location, "clientRequestID", clientRequestID, "latency", latency) }() resp, err := c.httpClient.Do(httpReq)