Skip to content

Commit

Permalink
policyfilter: misc message fixes
Browse files Browse the repository at this point in the history
Commit 425f91e ("policyfiltermetrics:
Remove error label") was reverted in the previous patch included some
misc fixes for log messages. Add them here.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Apr 2, 2024
1 parent 9c66f6d commit 706b5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/policyfilter/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (m *state) updatePodHandler(pod *v1.Pod) error {
"pod-id": podID,
"container-ids": containerIDs,
"namespace": namespace,
}).Warn("policyfilter, add pod-handler: AddPodContainer failed")
}).Warn("policyfilter, UpdatePod failed")
return err
}

Expand All @@ -305,7 +305,7 @@ func (m *state) getPodEventHandlers() cache.ResourceEventHandlerFuncs {
UpdateFunc: func(_, newObj interface{}) {
pod, ok := newObj.(*v1.Pod)
if !ok {
logger.GetLogger().Warn("policyfilter, update-pod: unexpected object type(s): new:%T", pod)
logger.GetLogger().Warn("policyfilter, update-pod handler: unexpected object type(s): new:%T", pod)
return
}
err := m.updatePodHandler(pod)
Expand Down

0 comments on commit 706b5aa

Please sign in to comment.