Browse Source

rename log level

pull/15/head
Jason 5 years ago
parent
commit
ac4f8321bd
  1. 6
      cmd/tun2socks/main.go

6
cmd/tun2socks/main.go

@ -79,7 +79,7 @@ func main() {
args.TunDns = flag.String("tunDns", "1.1.1.1", "DNS resolvers for TUN interface (Windows Only)")
args.ProxyType = flag.String("proxyType", "socks", "Proxy handler type")
args.DelayICMP = flag.Int("delayICMP", 1, "Delay ICMP packets for a short period of time, in milliseconds")
args.LogLevel = flag.String("loglevel", "info", "Logging level. (debug, info, warn, error, none)")
args.LogLevel = flag.String("loglevel", "info", "Logging level. (info, warning, error, debug, silent)")
flag.Parse()
@ -101,11 +101,11 @@ func main() {
log.SetLevel(log.DEBUG)
case "info":
log.SetLevel(log.INFO)
case "warn":
case "warning":
log.SetLevel(log.WARN)
case "error":
log.SetLevel(log.ERROR)
case "none":
case "silent":
log.SetLevel(log.NONE)
default:
panic("unsupported logging level")

Loading…
Cancel
Save