diff --git a/pkg/controller/volume/selinuxwarning/selinux_warning_controller.go b/pkg/controller/volume/selinuxwarning/selinux_warning_controller.go index 249a954e196..53c08d1f6ab 100644 --- a/pkg/controller/volume/selinuxwarning/selinux_warning_controller.go +++ b/pkg/controller/volume/selinuxwarning/selinux_warning_controller.go @@ -472,7 +472,7 @@ func (c *Controller) syncPod(ctx context.Context, pod *v1.Pod) error { if volumeutil.IsMultipleSELinuxLabelsError(err) { c.eventRecorder.Eventf(pod, v1.EventTypeWarning, "MultipleSELinuxLabels", "Volume %q is mounted twice with different SELinux labels inside this pod", mount) } - logger.V(4).Error(err, "failed to get SELinux label", "pod", klog.KObj(pod), "volume", mount) + logger.V(4).Info("failed to get SELinux label", "pod", klog.KObj(pod), "volume", mount, "err", err) errs = append(errs, err) continue } @@ -535,7 +535,7 @@ func (c *Controller) reportConflictEvents(logger klog.Logger, conflicts []volume for _, conflict := range conflicts { pod, err := c.podLister.Pods(conflict.Pod.Namespace).Get(conflict.Pod.Name) if err != nil { - logger.V(2).Error(err, "failed to get first pod for event", "pod", conflict.Pod) + logger.V(2).Info("failed to get first pod for event", "pod", conflict.Pod, "err", err) // It does not make sense to report a conflict that has been resolved by deleting one of the pods. return }