migrate pkg/scheduler/framework/plugins/volume to structured logs

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy
2021-01-30 15:35:20 +08:00
parent 56bb207b94
commit 57fc5f67e7
2 changed files with 4 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ func (pl *VolumeZone) Filter(ctx context.Context, _ *framework.CycleState, pod *
nodeV, _ := nodeConstraints[k]
volumeVSet, err := volumehelpers.LabelZonesToSet(v)
if err != nil {
klog.Warningf("Failed to parse label for %q: %q. Ignoring the label. err=%v. ", k, v, err)
klog.InfoS("Failed to parse label, ignoring the label", "label", fmt.Sprintf("%s:%s", k, v), "err", err)
continue
}