aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-16 13:15:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-16 14:12:41 +0100
commit38ebc483588a7355b565e5c96f8e3f1742804961 (patch)
tree35dd5adfd41b3e628f773f0478d0acd3d6b6458b /tunnel/service.go
parentversion: bump (diff)
downloadwireguard-windows-38ebc483588a7355b565e5c96f8e3f1742804961.tar.xz
wireguard-windows-38ebc483588a7355b565e5c96f8e3f1742804961.zip
tunnel: simplify panic printing
Now that we're intercepting println, we don't need this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/service.go')
-rw-r--r--tunnel/service.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/tunnel/service.go b/tunnel/service.go
index 22bbf5a0..4b02a503 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -12,8 +12,6 @@ import (
"net"
"os"
"runtime"
- "runtime/debug"
- "strings"
"time"
"golang.org/x/sys/windows/svc"
@@ -108,16 +106,6 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
serviceError = services.ErrorRingloggerOpen
return
}
- defer func() {
- if x := recover(); x != nil {
- for _, line := range append([]string{fmt.Sprint(x)}, strings.Split(string(debug.Stack()), "\n")...) {
- if len(strings.TrimSpace(line)) > 0 {
- log.Println(line)
- }
- }
- panic(x)
- }
- }()
config, err = conf.LoadFromPath(service.Path)
if err != nil {