diff --git a/node/lease_controller_v1.go b/node/lease_controller_v1.go index aba55910f..3d57e8b27 100644 --- a/node/lease_controller_v1.go +++ b/node/lease_controller_v1.go @@ -114,6 +114,7 @@ func (c *leaseController) sync(ctx context.Context) { pingResult, err := c.nodeController.nodePingController.getResult(ctx) if err != nil { log.G(ctx).WithError(err).Error("Could not get ping status") + return } if pingResult.error != nil { log.G(ctx).WithError(pingResult.error).Error("Ping result is not clean, not updating lease") 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 }