From 4e31cf90dff1a924d75237a191b5989baa781f2e Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Sat, 20 May 2023 15:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E5=A0=86=E6=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/log/log.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/log/log.go b/utils/log/log.go index f8b3eba..f3e91ff 100644 --- a/utils/log/log.go +++ b/utils/log/log.go @@ -7,6 +7,7 @@ import ( "go.uber.org/zap/zapcore" "io" "os" + "runtime/debug" "time" ) @@ -99,6 +100,7 @@ func Debug(msg string, fields ...zap.Field) { func Error(msg string, fields ...zap.Field) { logger.Error(msg, fields...) + fmt.Println(string(debug.Stack())) } func SetProd() {