This commit is contained in:
2023-01-19 11:32:26 +08:00
parent 0fdfb59809
commit 3679bd502c

View File

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