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


##########
pkg/log/logger_test.go:
##########
@@ -119,9 +121,9 @@ func TestInitializeLogger(t *testing.T) {
 
        InitializeLogger(localLogger, &zapConfig)
        assert.Equal(t, Logger(), localLogger)
-       // second initialization should not do anything
+       // second initialization should update
        InitializeLogger(localLogger2, &zapConfig)
-       assert.Equal(t, Logger(), localLogger)
+       assert.Equal(t, Logger(), localLogger2)

Review Comment:
   As above, InitializeLogger() is how the shim will reconfigure the logger 
when the configmap changes. I've tested this locally in my shim, and it works 
as expected.



-- 
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