From 29f56e292a07327aaa41fa409713921a48ed440c Mon Sep 17 00:00:00 2001 From: shivkumar dudhani Date: Fri, 27 Mar 2020 08:22:05 -0700 Subject: [PATCH] use klog as logger for event broadcasting --- pkg/event/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/event/controller.go b/pkg/event/controller.go index 0125397c8d..a33e50f756 100644 --- a/pkg/event/controller.go +++ b/pkg/event/controller.go @@ -17,6 +17,7 @@ import ( "k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/record" "k8s.io/client-go/util/workqueue" + "k8s.io/klog" ) //Generator generate events @@ -66,7 +67,7 @@ func initRecorder(client *client.Client, eventSource Source, log logr.Logger) re return nil } eventBroadcaster := record.NewBroadcaster() - eventBroadcaster.StartLogging(log.Info) + eventBroadcaster.StartLogging(klog.Infof) eventInterface, err := client.GetEventsInterface() if err != nil { log.Error(err, "failed to get event interface for logging")