aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_tunnel.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 19:07:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 20:19:50 +0200
commit8e8271ec6b215a0ec8e37ed80a2786d9ffc597ed (patch)
tree30a8d4683e6cb9e08c71d74c658681b3aaac27f4 /service/service_tunnel.go
parentui: dpi aware manifest (diff)
downloadwireguard-windows-8e8271ec6b215a0ec8e37ed80a2786d9ffc597ed.tar.xz
wireguard-windows-8e8271ec6b215a0ec8e37ed80a2786d9ffc597ed.zip
ui: fix log closure variable
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/service_tunnel.go')
-rw-r--r--service/service_tunnel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/service_tunnel.go b/service/service_tunnel.go
index ba1b8ae0..419cfdbe 100644
--- a/service/service_tunnel.go
+++ b/service/service_tunnel.go
@@ -44,9 +44,9 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
logErr := combineErrors(err, serviceError)
logIt := func(a ...interface{}) {
if logger != nil {
- logger.Error.Print(a...)
+ logger.Error.Println(a...)
} else {
- log.Print(a...)
+ log.Println(a...)
}
}
if logErr != nil {
@@ -94,7 +94,7 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
dev.Close()
}
stopIt <- true
- log.Print("Shutting down")
+ log.Println("Shutting down")
}()
err = ringlogger.InitGlobalLogger("TUN")