craigcondit commented on code in PR #446:
URL: https://github.com/apache/yunikorn-core/pull/446#discussion_r1017236739


##########
pkg/log/logger.go:
##########
@@ -116,14 +126,17 @@ func createConfig() *zap.Config {
 }
 
 func SetLogLevel(newLevel string) error {
+       logger := Logger()
+       config := GetConfig()
+
        oldLevel := config.Level.String()
 
        // noop if the input is the same as what is set
        if newLevel == oldLevel {
                return nil
        }
 
-       logger.Info("Updating log level",
+       Logger().Info("Updating log level",

Review Comment:
   good catch, this should be logger from Line 129.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to