rm(tun): debug.PrintStack() in logger

This commit is contained in:
Haruue 2024-03-19 16:56:26 +08:00
parent 0cde4f405f
commit 38d9248acd
No known key found for this signature in database
GPG Key ID: F6083B28CBCBC148

View File

@ -1,8 +1,6 @@
package tun package tun
import ( import (
"runtime/debug"
"github.com/sagernet/sing/common/logger" "github.com/sagernet/sing/common/logger"
"go.uber.org/zap" "go.uber.org/zap"
) )
@ -60,7 +58,6 @@ func (l *singLogger) Error(args ...any) {
} }
extractSingExceptions(args) extractSingExceptions(args)
l.zapLogger.Error(l.tag, zap.Any("args", args)) l.zapLogger.Error(l.tag, zap.Any("args", args))
debug.PrintStack()
} }
func (l *singLogger) Fatal(args ...any) { func (l *singLogger) Fatal(args ...any) {