main
kzkzzzz 2023-01-19 11:32:26 +08:00
parent 0fdfb59809
commit 3679bd502c
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func NewLogger(serverName string, config *Config) *ZapLog {
if config.ZapOpt != nil { if config.ZapOpt != nil {
opts = config.ZapOpt opts = config.ZapOpt
} else { } else {
opts = append(opts, zap.AddCaller(), zap.AddCallerSkip(1)) opts = append(opts, zap.AddCaller(), zap.AddCallerSkip(2))
} }
zl := zap.New(zapcore.NewTee(cores...), opts...) zl := zap.New(zapcore.NewTee(cores...), opts...)