mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-16 23:53:17 -05:00
go/store/util/verbose: Store zap.Logger instead of making a new one every Logger call.
This commit is contained in:
@@ -62,7 +62,8 @@ func init() {
|
||||
})
|
||||
encoder := zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig())
|
||||
core := zapcore.NewCore(encoder, zapcore.Lock(os.Stderr), enabler)
|
||||
l := zap.New(core)
|
||||
Logger = func(ctx context.Context) *zap.Logger {
|
||||
return zap.New(core)
|
||||
return l
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user