Skip to content

Commit

Permalink
cleaning var names
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Kolluru <[email protected]>
  • Loading branch information
chaitanyakolluru committed Jun 4, 2024
1 parent 924edfb commit 48f8c53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ func NewLogger(debug, timeEncodeISO8601 bool, addCallerSkip ...int) (Logger, err

// If timeEncodeISO8601 is true, use ISO8601TimeEncoder for production logger.
if timeEncodeISO8601 {
pCfg := zap.NewProductionEncoderConfig()
pCfg.EncodeTime = zapcore.ISO8601TimeEncoder
ec := zap.NewProductionEncoderConfig()
ec.EncodeTime = zapcore.ISO8601TimeEncoder

p := zap.NewProductionConfig()
p.EncoderConfig = pCfg
p.EncoderConfig = ec
zl, err := p.Build(o...)
return NewLogrLogger(zapr.NewLogger(zl)), errors.Wrap(err, "cannot create production zap logger")
}
Expand Down

0 comments on commit 48f8c53

Please sign in to comment.