不打印stack日志
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"runtime/debug"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -43,7 +42,7 @@ func (l *Logger) logger(ctx context.Context, event string, v ...any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if event == "error" {
|
if event == "error" {
|
||||||
fd.Stack = string(debug.Stack())
|
// fd.Stack = string(debug.Stack())
|
||||||
}
|
}
|
||||||
|
|
||||||
fdb, _ := json.Marshal(fd)
|
fdb, _ := json.Marshal(fd)
|
||||||
|
|||||||
Reference in New Issue
Block a user