Skip to content

Commit 52d7614

Browse files
authored
Merge pull request kubernetes#87601 from aramase/bump-log-verbosity
azure: switch log verbosity for cache refresh logs
2 parents 962a61f + 647838f commit 52d7614

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

staging/src/k8s.io/legacy-cloud-providers/azure/azure_vmss.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (ss *scaleSet) getVMSS(vmssName string, crt cacheReadType) (*compute.Virtua
117117
return vmss, nil
118118
}
119119

120-
klog.V(3).Infof("Couldn't find VMSS with name %s, refreshing the cache", vmssName)
120+
klog.V(2).Infof("Couldn't find VMSS with name %s, refreshing the cache", vmssName)
121121
ss.vmssCache.Delete(vmssKey)
122122
vmss, err = getter(vmssName)
123123
if err != nil {
@@ -161,7 +161,7 @@ func (ss *scaleSet) getVmssVM(nodeName string, crt cacheReadType) (string, strin
161161
}
162162

163163
if !found {
164-
klog.V(3).Infof("Couldn't find VMSS VM with nodeName %s, refreshing the cache", nodeName)
164+
klog.V(2).Infof("Couldn't find VMSS VM with nodeName %s, refreshing the cache", nodeName)
165165
vmssName, instanceID, vm, found, err = getter(nodeName, cacheReadTypeForceRefresh)
166166
if err != nil {
167167
return "", "", nil, err
@@ -231,7 +231,7 @@ func (ss *scaleSet) getVmssVMByInstanceID(resourceGroup, scaleSetName, instanceI
231231
return nil, err
232232
}
233233
if !found {
234-
klog.V(3).Infof("Couldn't find VMSS VM with scaleSetName %q and instanceID %q, refreshing the cache", scaleSetName, instanceID)
234+
klog.V(2).Infof("Couldn't find VMSS VM with scaleSetName %q and instanceID %q, refreshing the cache", scaleSetName, instanceID)
235235
vm, found, err = getter(cacheReadTypeForceRefresh)
236236
if err != nil {
237237
return nil, err

0 commit comments

Comments
 (0)