Skip to content

Commit 10241ff

Browse files
committed
intra/tun2socks: always traceback sys gorountines
go runtime crashes are undebbugable without those
1 parent 3fa5227 commit 10241ff

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

intra/tun2socks.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,7 @@ func LogLevel(gologLevel, consolelogLevel, callerDepth int32) {
230230
// gomobile builds a c-shared gojnilib:
231231
// github.com/golang/mobile/blob/2553ed8ce2/cmd/gomobile/bind_androidapp.go#L393
232232
prevtraceback, _ := core.GetRuntimeEnviron("GOTRACEBACK")
233-
newtraceback := one.s()
234-
if verbose {
235-
newtraceback = sys.s()
236-
} else if dbg {
237-
newtraceback = usr.s()
238-
}
233+
newtraceback := sys.s()
239234
didSet, overwrote, _ := core.SetRuntimeEnviron("GOTRACEBACK", newtraceback)
240235
curtraceback, _ := core.GetRuntimeEnviron("GOTRACEBACK")
241236

0 commit comments

Comments
 (0)