Browse Source

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

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
69c51e2c4a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      embed/config.go

+ 2 - 2
embed/config.go

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