Remove undesired verbose fields from log
The if and else branches have the exactly same code, which looks confusing and doesn't make sense. According to the comment, the else branch should log the error and podUID only. Signed-off-by: Quan Tian <qtian@vmware.com>
This commit is contained in:
@@ -229,7 +229,7 @@ func (e *EventedPLEG) processCRIEvents(containerEventsResponseCh chan *runtimeap
|
||||
if klog.V(6).Enabled() {
|
||||
klog.ErrorS(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID, "podStatus", status)
|
||||
} else {
|
||||
klog.ErrorS(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID, "podStatus", status)
|
||||
klog.ErrorS(err, "Evented PLEG: error generating pod status from the received event", "podUID", podID)
|
||||
}
|
||||
} else {
|
||||
if klogV := klog.V(6); klogV.Enabled() {
|
||||
|
Reference in New Issue
Block a user