aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_manager.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 17:51:39 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 17:54:50 +0100
commit9567d99bdc2b7bdee6ae01a41082674589f6b796 (patch)
tree46780d66e1807a6d9b079f4c98e1b91e7362e9eb /service/service_manager.go
parentbuild: add rsrc to go module (diff)
downloadwireguard-windows-9567d99bdc2b7bdee6ae01a41082674589f6b796.tar.xz
wireguard-windows-9567d99bdc2b7bdee6ae01a41082674589f6b796.zip
tunnel: log the builtin go log to elog
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/service_manager.go')
-rw-r--r--service/service_manager.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/service_manager.go b/service/service_manager.go
index c049465d..1f31521b 100644
--- a/service/service_manager.go
+++ b/service/service_manager.go
@@ -8,6 +8,7 @@ package service
import (
"golang.org/x/sys/windows"
"golang.org/x/sys/windows/svc"
+ "golang.org/x/sys/windows/svc/debug"
"golang.org/x/sys/windows/svc/eventlog"
"golang.zx2c4.com/wireguard/windows/conf"
"log"
@@ -82,7 +83,7 @@ func localWellKnownSid(sidType wellKnownSidType) (*windows.SID, error) {
type managerService struct{}
type elogger struct {
- *eventlog.Log
+ debug.Log
}
func (elog elogger) Write(p []byte) (n int, err error) {