Skip to content

Commit 48f8c53

Browse files
cleaning var names
Signed-off-by: Chaitanya Kolluru <[email protected]>
1 parent 924edfb commit 48f8c53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

logging/logging.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ func NewLogger(debug, timeEncodeISO8601 bool, addCallerSkip ...int) (Logger, err
6060

6161
// If timeEncodeISO8601 is true, use ISO8601TimeEncoder for production logger.
6262
if timeEncodeISO8601 {
63-
pCfg := zap.NewProductionEncoderConfig()
64-
pCfg.EncodeTime = zapcore.ISO8601TimeEncoder
63+
ec := zap.NewProductionEncoderConfig()
64+
ec.EncodeTime = zapcore.ISO8601TimeEncoder
6565

6666
p := zap.NewProductionConfig()
67-
p.EncoderConfig = pCfg
67+
p.EncoderConfig = ec
6868
zl, err := p.Build(o...)
6969
return NewLogrLogger(zapr.NewLogger(zl)), errors.Wrap(err, "cannot create production zap logger")
7070
}

0 commit comments

Comments
 (0)