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:
yuswift 2021-07-26 16:11:44 +08:00 committed by swiftslee
parent 95e30f66c3
commit 7ba2ffb931

View File

@ -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(