From 8e12640d819ee78ee1109cea6a24b33260e469be Mon Sep 17 00:00:00 2001
From: Mariam Fahmy <mariam.fahmy@nirmata.com>
Date: Fri, 21 Jul 2023 18:41:29 +0300
Subject: [PATCH] fix log level (#7877)

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
---
 pkg/logging/log.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/logging/log.go b/pkg/logging/log.go
index 08a3344c2c..c32a18fd46 100644
--- a/pkg/logging/log.go
+++ b/pkg/logging/log.go
@@ -34,7 +34,7 @@ const (
 // When logging.Setup is called, globalLog is switched to the real logger.
 // Call depth of all loggers created before logging.Setup will not work, including package level loggers as they are created before main.
 // All loggers created after logging.Setup won't be subject to the call depth limitation and will work if the underlying sink supports it.
-var globalLog = log.Log.V(2)
+var globalLog = log.Log
 
 func InitFlags(flags *flag.FlagSet) {
 	// clear flags initialized in static dependencies
@@ -50,7 +50,7 @@ func Setup(logFormat string, level int) error {
 	switch logFormat {
 	case TextFormat:
 		// in text mode we use FormatSerialize format
-		globalLog = klogr.New().V(2)
+		globalLog = klogr.New()
 	case JSONFormat:
 		zc := zap.NewProductionConfig()
 		// Zap's levels get more and less verbose as the number gets smaller and higher respectively (DebugLevel is -1, InfoLevel is 0, WarnLevel is 1, and so on).