craigcondit commented on code in PR #446:
URL: https://github.com/apache/yunikorn-core/pull/446#discussion_r1017252608
##########
pkg/entrypoint/entrypoint.go:
##########
@@ -55,6 +55,10 @@ func StartAllServicesWithLogger(logger *zap.Logger,
zapConfigs *zap.Config) *Ser
return StartAllServices()
}
+func InitializeLogger(logger *zap.Logger, zapConfigs *zap.Config) {
+ log.InitializeLogger(logger, zapConfigs)
+}
+
Review Comment:
Per offline discussions, reverting all logging changes.
##########
pkg/log/logger.go:
##########
@@ -23,50 +23,63 @@ import (
"fmt"
"reflect"
"sync"
+ "sync/atomic"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
var once sync.Once
-var logger *zap.Logger
-var config *zap.Config
+var holderValue atomic.Value
Review Comment:
Per offline discussions, reverting all logging changes.
--
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]