refactor: enable tracking the called line
This commit is contained in:
parent
844d3a0a5f
commit
fba98da0e0
|
@ -22,7 +22,7 @@ func NewLogger(cm *config.Manager) (*zap.Logger, *zap.AtomicLevel) {
|
|||
zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig()),
|
||||
zapcore.Lock(os.Stdout),
|
||||
atomicLevel,
|
||||
))
|
||||
), zap.AddCaller())
|
||||
|
||||
return logger, &atomicLevel
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue