diff --git a/mylog/log.go b/mylog/log.go index 94ea7d3..032b1cb 100644 --- a/mylog/log.go +++ b/mylog/log.go @@ -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...)