From 076bce8727d3f02cc3cbf6cdfb560a758185aaf3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 20 Mar 2019 02:18:05 -0600 Subject: ringlogger: introduce basic file ring logging Signed-off-by: Jason A. Donenfeld --- service/ipc_server.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'service/ipc_server.go') diff --git a/service/ipc_server.go b/service/ipc_server.go index 17ea67c2..079dc85c 100644 --- a/service/ipc_server.go +++ b/service/ipc_server.go @@ -11,6 +11,7 @@ import ( "github.com/Microsoft/go-winio" "golang.org/x/sys/windows/svc" "golang.zx2c4.com/wireguard/windows/conf" + "golang.zx2c4.com/wireguard/windows/ringlogger" "io/ioutil" "net/rpc" "os" @@ -206,6 +207,11 @@ func (s *ManagerService) Quit(stopTunnelsOnQuit bool, alreadyQuit *bool) error { return nil } +func (s *ManagerService) LogFilePath(unused uintptr, filepath *string) error { + *filepath = ringlogger.Global.Filename() + return nil +} + func IPCServerListen(reader *os.File, writer *os.File, events *os.File) error { service := &ManagerService{events: events} -- cgit v1.2.3-59-g8ed1b