From 22fa41d91683f88ac05fdc8346d3f41b71ddfa1c Mon Sep 17 00:00:00 2001 From: Wantong Jiang Date: Sat, 7 Mar 2026 01:01:43 +0000 Subject: [PATCH] fix vmsizerecommenderclient log Signed-off-by: Wantong Jiang --- pkg/clients/azure/compute/vmsizerecommenderclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)