mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
use info instead of infof when no format
This commit is contained in:
parent
7726877a1e
commit
5a5f7fc42c
@ -51,7 +51,7 @@ func (az *Cloud) GetVirtualMachineWithRetry(name types.NodeName) (compute.Virtua
|
|||||||
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("backoff: success")
|
glog.V(2).Info("backoff: success")
|
||||||
return true, nil
|
return true, nil
|
||||||
})
|
})
|
||||||
if err == wait.ErrWaitTimeout {
|
if err == wait.ErrWaitTimeout {
|
||||||
@ -118,7 +118,7 @@ func (az *Cloud) GetIPForMachineWithRetry(name types.NodeName) (string, error) {
|
|||||||
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("backoff: success")
|
glog.V(2).Info("backoff: success")
|
||||||
return true, nil
|
return true, nil
|
||||||
})
|
})
|
||||||
return ip, err
|
return ip, err
|
||||||
|
@ -485,7 +485,7 @@ func (c *BlobDiskController) getAllStorageAccounts() (map[string]*storageAccount
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if v.Name == nil || v.Sku == nil {
|
if v.Name == nil || v.Sku == nil {
|
||||||
glog.Infof("azureDisk - accountListResult Name or Sku is nil")
|
glog.Info("azureDisk - accountListResult Name or Sku is nil")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
glog.Infof("azureDisk - identified account %s as part of shared PVC accounts", *v.Name)
|
glog.Infof("azureDisk - identified account %s as part of shared PVC accounts", *v.Name)
|
||||||
|
@ -131,7 +131,7 @@ func (c *controllerCommon) AttachDisk(isManagedDisk bool, diskName, diskURI stri
|
|||||||
c.cloud.DetachDiskByName(diskName, diskURI, nodeName)
|
c.cloud.DetachDiskByName(diskName, diskURI, nodeName)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
glog.V(4).Infof("azureDisk - azure attach succeeded")
|
glog.V(4).Info("azureDisk - azure attach succeeded")
|
||||||
// Invalidate the cache right after updating
|
// Invalidate the cache right after updating
|
||||||
vmCache.Delete(vmName)
|
vmCache.Delete(vmName)
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ func (c *controllerCommon) DetachDiskByName(diskName, diskURI string, nodeName t
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("azureDisk - azure disk detach failed, err: %v", err)
|
glog.Errorf("azureDisk - azure disk detach failed, err: %v", err)
|
||||||
} else {
|
} else {
|
||||||
glog.V(4).Infof("azureDisk - azure disk detach succeeded")
|
glog.V(4).Info("azureDisk - azure disk detach succeeded")
|
||||||
// Invalidate the cache right after updating
|
// Invalidate the cache right after updating
|
||||||
vmCache.Delete(vmName)
|
vmCache.Delete(vmName)
|
||||||
}
|
}
|
||||||
|
@ -294,7 +294,7 @@ func (az *Cloud) selectLoadBalancer(clusterName string, service *v1.Service, exi
|
|||||||
|
|
||||||
func (az *Cloud) getServiceLoadBalancerStatus(service *v1.Service, lb *network.LoadBalancer) (status *v1.LoadBalancerStatus, err error) {
|
func (az *Cloud) getServiceLoadBalancerStatus(service *v1.Service, lb *network.LoadBalancer) (status *v1.LoadBalancerStatus, err error) {
|
||||||
if lb == nil {
|
if lb == nil {
|
||||||
glog.V(10).Infof("getServiceLoadBalancerStatus lb is nil")
|
glog.V(10).Info("getServiceLoadBalancerStatus lb is nil")
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
if lb.FrontendIPConfigurations == nil || *lb.FrontendIPConfigurations == nil {
|
if lb.FrontendIPConfigurations == nil || *lb.FrontendIPConfigurations == nil {
|
||||||
|
@ -654,7 +654,7 @@ func (ss *scaleSet) getScaleSetWithRetry(name string) (compute.VirtualMachineSca
|
|||||||
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
glog.Errorf("backoff: failure, will retry,err=%v", retryErr)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("backoff: success")
|
glog.V(2).Info("backoff: success")
|
||||||
return true, nil
|
return true, nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user