From 3679bd502caf37927e0cf7f31cad70d121d3b425 Mon Sep 17 00:00:00 2001 From: kzkzzzz Date: Thu, 19 Jan 2023 11:32:26 +0800 Subject: [PATCH] update --- mylog/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...)