You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.ErrorS(nil, "Evented PLEG: received ContainerEventResponse with nil PodSandboxStatus or PodSandboxStatus.Metadata", "containerEventResponse", event)
227
+
e.logger.Error(nil, "Evented PLEG: received ContainerEventResponse with nil PodSandboxStatus or PodSandboxStatus.Metadata", "containerEventResponse", event)
225
228
continue
226
229
}
227
230
@@ -234,15 +237,15 @@ func (e *EventedPLEG) processCRIEvents(containerEventsResponseCh chan *runtimeap
234
237
// if branch is okay, we just use it to determine whether the
235
238
// additional "podStatus" key and its value should be added.
236
239
ifklog.V(6).Enabled() {
237
-
klog.ErrorS(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID, "podStatus", status)
240
+
e.logger.Error(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID, "podStatus", status)
238
241
} else {
239
-
klog.ErrorS(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID)
242
+
e.logger.Error(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID)
240
243
}
241
244
} else {
242
-
ifklogV:=klog.V(6); klogV.Enabled() {
243
-
klogV.InfoS("Evented PLEG: Generated pod status from the received event", "podUID", podID, "podStatus", status)
245
+
ifklogV:=e.logger.V(6); klogV.Enabled() {
246
+
e.logger.Info("Evented PLEG: Generated pod status from the received event", "podUID", podID, "podStatus", status)
244
247
} else {
245
-
klog.V(4).InfoS("Evented PLEG: Generated pod status from the received event", "podUID", podID)
248
+
e.logger.V(4).Info("Evented PLEG: Generated pod status from the received event", "podUID", podID)
246
249
}
247
250
// Preserve the pod IP across cache updates if the new IP is empty.
248
251
// When a pod is torn down, kubelet may race with PLEG and retrieve
@@ -282,23 +285,23 @@ func (e *EventedPLEG) processCRIEvent(event *runtimeapi.ContainerEventResponse)
0 commit comments