From 706b5aa5912d77a81cad461383a49f04645f6004 Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Tue, 2 Apr 2024 14:01:57 +0200 Subject: [PATCH] policyfilter: misc message fixes Commit 425f91e2be6b83c4b654062d64ec49ec5e072d4f ("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 --- pkg/policyfilter/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/policyfilter/state.go b/pkg/policyfilter/state.go index 8859eb88a4d..673b1f1ed61 100644 --- a/pkg/policyfilter/state.go +++ b/pkg/policyfilter/state.go @@ -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 } @@ -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)