From 77f3c6f71c41895e7c5814ed6d8568a1eb31e99b Mon Sep 17 00:00:00 2001 From: Kensei Nakada Date: Wed, 4 Oct 2023 15:58:25 +0900 Subject: [PATCH] fix: call setupLogger after SetLogger --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4f34a5b2..27933d78 100644 --- a/main.go +++ b/main.go @@ -92,10 +92,10 @@ func main() { os.Exit(1) } - setupLog.Info("config", "config", *config) - ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) + setupLog.Info("config", "config", *config) + mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ Scheme: scheme, MetricsBindAddress: metricsAddr,