mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
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:
parent
e3db9232d9
commit
d9b941b782
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user