mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
pkg/volume: fix incorrect klog.Infof usage
klog.Infof expects a format string as first parameter and then expands format specifies inside it. What gets passed here is the final string that must be logged as-is, therefore klog.Info has to be used. Signed-off-by: yuswift <yuswift2018@gmail.com>
This commit is contained in:
parent
95e30f66c3
commit
7ba2ffb931
@ -975,7 +975,7 @@ func (og *operationGenerator) GenerateUnmountDeviceFunc(
|
||||
return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
|
||||
}
|
||||
|
||||
klog.Infof(deviceToDetach.GenerateMsgDetailed("UnmountDevice succeeded", ""))
|
||||
klog.Info(deviceToDetach.GenerateMsgDetailed("UnmountDevice succeeded", ""))
|
||||
|
||||
// Update actual state of world
|
||||
markDeviceUnmountedErr := actualStateOfWorld.MarkDeviceAsUnmounted(
|
||||
|
Loading…
Reference in New Issue
Block a user