From 377b7e5b816d4e7b792bf89484fa2d85c6f70609 Mon Sep 17 00:00:00 2001 From: Marco Kilchhofer Date: Tue, 11 Jan 2022 02:47:20 +0100 Subject: [PATCH] fix: Set controller logger if we don't use JSON format (#451) Signed-off-by: Marco Kilchhofer --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b843107e..59cc6b76 100644 --- a/main.go +++ b/main.go @@ -99,8 +99,8 @@ func main() { json := strings.ToLower(logFormat) == JsonFormat + ctrl.SetLogger(zap.New(zap.UseDevMode(!json))) if json { - ctrl.SetLogger(zap.New(zap.UseDevMode(!json))) log.SetFormatter(&log.JSONFormatter{}) }