embed: change "loggerConfig" to "*zap.Config"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-24 15:32:12 -07:00
parent 6df3179c06
commit 69c51e2c4a

View File

@ -266,7 +266,7 @@ type Config struct {
// Do not set logger directly.
loggerMu *sync.RWMutex
logger *zap.Logger
loggerConfig zap.Config
loggerConfig *zap.Config
// Logger is logger options: "zap", "capnslog".
// WARN: "capnslog" is being deprecated in v3.5.
@ -519,7 +519,7 @@ func (cfg *Config) setupLogging() error {
if err != nil {
return err
}
cfg.loggerConfig = lcfg
cfg.loggerConfig = &lcfg
grpcLogOnce.Do(func() {
// debug true, enable info, warning, error