christophd commented on code in PR #3401:
URL: https://github.com/apache/camel-k/pull/3401#discussion_r908107887


##########
pkg/cmd/operator/operator.go:
##########
@@ -120,16 +112,12 @@ func Run(healthPort, monitoringPort int32, leaderElection 
bool, leaderElectionID
                }
        }
 
-       logLevelEnabler := loglvl{
-               Level: logLevel,
-       }
-
-       logf.SetLogger(zap.New(func(o *zap.Options) {
+       logf.SetLogger(zapctrl.New(func(o *zapctrl.Options) {
                o.Development = false
-               o.Level = logLevelEnabler
+               o.Level = zap.NewAtomicLevelAt(logLevel)

Review Comment:
   I saw that zap is doing it this way when adding the default level options so 
I thought it must be the right way to do it 😄



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to