Skip to content

Commit af66ed2

Browse files
committed
tun2socks: emit debug logs if console level needs them
1 parent 85e4a76 commit af66ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intra/tun2socks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func LogLevel(gologLevel, consolelogLevel int32) {
9292
clvl := log.LevelOf(consolelogLevel)
9393
log.SetLevel(dlvl)
9494
log.SetConsoleLevel(clvl)
95-
settings.Debug = dlvl <= log.DEBUG
95+
settings.Debug = dlvl <= log.DEBUG || clvl <= log.DEBUG
9696
if settings.Debug {
9797
debug.SetTraceback(usr.s())
9898
} else {

0 commit comments

Comments
 (0)