Skip to content

Commit 54606db

Browse files
pacoxuehashman
andauthored
Update pkg/kubelet/pleg/generic.go
Co-authored-by: Elana Hashman <[email protected]>
1 parent 3fc1e08 commit 54606db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/kubelet/pleg/generic.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,10 @@ func (g *GenericPLEG) updateCache(pod *kubecontainer.Pod, pid types.UID) error {
383383
// GetPodStatus(pod *kubecontainer.Pod) so that Docker can avoid listing
384384
// all containers again.
385385
status, err := g.runtime.GetPodStatus(pod.ID, pod.Name, pod.Namespace)
386-
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name))
387386
if klog.V(6).Enabled() {
388-
klog.ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
387+
klog.V(6).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
388+
} else {
389+
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name))
389390
}
390391
if err == nil {
391392
// Preserve the pod IP across cache updates if the new IP is empty.

0 commit comments

Comments
 (0)