use klog.Info and klog.Warning when had no format

This commit is contained in:
xiongzhongliang
2020-11-14 00:55:06 +08:00
parent 84d15ca322
commit 90f4aeeea4
21 changed files with 32 additions and 32 deletions

View File

@@ -312,7 +312,7 @@ func (rc *reconciler) reportMultiAttachError(volumeToAttach cache.VolumeToAttach
// Log detailed message to system admin
nodeList := strings.Join(otherNodesStr, ", ")
detailedMsg := volumeToAttach.GenerateMsgDetailed("Multi-Attach error", fmt.Sprintf("Volume is already exclusively attached to node %s and can't be attached to another", nodeList))
klog.Warningf(detailedMsg)
klog.Warning(detailedMsg)
return
}