From 22f329fcf0250c5d14931169bf76dca0c0c3f6d1 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 3 Sep 2021 18:02:35 +0000 Subject: [PATCH] Add extra logging for pod status update skip --- node/sync.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/node/sync.go b/node/sync.go index 62d7ebbfe..2a0a158f5 100644 --- a/node/sync.go +++ b/node/sync.go @@ -134,7 +134,12 @@ func (p *syncProviderWrapper) syncPodStatuses(ctx context.Context) { for _, pod := range pods { if shouldSkipPodStatusUpdate(pod) { - log.G(ctx).Debug("Skipping pod status update") + log.G(ctx).WithFields(log.Fields{ + "pod": pod.Name, + "namespace": pod.Namespace, + "phase": pod.Status.Phase, + "status": pod.Status.Reason, + }).Debug("Skipping pod status update") continue }