mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #101072 from gavinfish/volume-log
Fix log format in flexvolume
This commit is contained in:
commit
a5a155aaab
@ -43,7 +43,7 @@ func (f *mounterDefaults) SetUpAt(dir string, mounterArgs volume.MounterArgs) er
|
||||
|
||||
// Returns the default volume attributes.
|
||||
func (f *mounterDefaults) GetAttributes() volume.Attributes {
|
||||
klog.V(5).Infof(logPrefix(f.plugin), "using default GetAttributes")
|
||||
klog.V(5).Info(logPrefix(f.plugin), "using default GetAttributes")
|
||||
return volume.Attributes{
|
||||
ReadOnly: f.readOnly,
|
||||
Managed: !f.readOnly,
|
||||
|
@ -29,6 +29,6 @@ func logPrefix(plugin *flexVolumePlugin) string {
|
||||
}
|
||||
|
||||
func (plugin *pluginDefaults) GetVolumeName(spec *volume.Spec) (string, error) {
|
||||
klog.V(4).Infof(logPrefix((*flexVolumePlugin)(plugin)), "using default GetVolumeName for volume ", spec.Name())
|
||||
klog.V(4).Info(logPrefix((*flexVolumePlugin)(plugin)), "using default GetVolumeName for volume ", spec.Name())
|
||||
return spec.Name(), nil
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ func (plugin *flexVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error)
|
||||
return "", err
|
||||
}
|
||||
|
||||
klog.V(4).Infof(logPrefix(plugin), "GetVolumeName is not supported yet. Defaulting to PV or volume name: ", name)
|
||||
klog.V(4).Info(logPrefix(plugin), "GetVolumeName is not supported yet. Defaulting to PV or volume name: ", name)
|
||||
|
||||
return name, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user