From 864b1ae11745e655a2e0cd37f1531d90378a6d0b Mon Sep 17 00:00:00 2001 From: Yun Date: Fri, 19 Apr 2024 10:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=89=93=E5=8D=B0stack=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- format.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/format.go b/format.go index 68b8882..d0e5c40 100644 --- a/format.go +++ b/format.go @@ -6,7 +6,6 @@ import ( "fmt" "path/filepath" "runtime" - "runtime/debug" "strings" "time" ) @@ -43,7 +42,7 @@ func (l *Logger) logger(ctx context.Context, event string, v ...any) { } if event == "error" { - fd.Stack = string(debug.Stack()) + // fd.Stack = string(debug.Stack()) } fdb, _ := json.Marshal(fd)