不打印stack日志

This commit is contained in:
Yun
2024-04-19 10:49:30 +08:00
parent 30687b6be6
commit 864b1ae117
+1 -2
View File
@@ -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)