diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 17:51:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 17:54:50 +0100 |
commit | 88def542330703866a1ad5994a13f9a593be63b0 (patch) | |
tree | 46780d66e1807a6d9b079f4c98e1b91e7362e9eb /service/service_manager.go | |
parent | build: add rsrc to go module (diff) | |
download | wireguard-windows-88def542330703866a1ad5994a13f9a593be63b0.tar.xz wireguard-windows-88def542330703866a1ad5994a13f9a593be63b0.zip |
tunnel: log the builtin go log to elog
Diffstat (limited to 'service/service_manager.go')
-rw-r--r-- | service/service_manager.go | 3 |
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) { |