From d7751856babbb0feec93590ae30abb2ff7f1cc97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20Vass=C3=A3o?= Date: Thu, 6 Feb 2025 08:19:29 -0300 Subject: [PATCH] log action and message when creating event (#12092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Renato Vassão Co-authored-by: Jim Bugwadia --- pkg/event/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/event/controller.go b/pkg/event/controller.go index 71db362e6f..e980453b8d 100644 --- a/pkg/event/controller.go +++ b/pkg/event/controller.go @@ -90,11 +90,11 @@ func (gen *controller) Add(infos ...Info) { continue } if gen.omitEvents.Has(string(info.Reason)) { - logger.V(6).Info("omitting event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason) + logger.V(6).Info("omitting event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason, "action", info.Action, "note", info.Message) continue } gen.emitEvent(info) - logger.V(6).Info("creating event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason) + logger.V(6).Info("creating event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason, "action", info.Action, "note", info.Message) } }