From 7079293285c1245733557d236d95dbae9821973d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 16 May 2019 16:51:12 +0200 Subject: service: print useragent in log Signed-off-by: Jason A. Donenfeld --- service/service_manager.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service/service_manager.go') diff --git a/service/service_manager.go b/service/service_manager.go index 5ffd8615..58c2d863 100644 --- a/service/service_manager.go +++ b/service/service_manager.go @@ -20,6 +20,7 @@ import ( "golang.org/x/sys/windows/svc" "golang.zx2c4.com/wireguard/windows/conf" "golang.zx2c4.com/wireguard/windows/ringlogger" + "golang.zx2c4.com/wireguard/windows/version" ) type managerService struct{} @@ -51,6 +52,8 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest } }() + log.Println("Starting", version.UserAgent()) + path, err := os.Executable() if err != nil { serviceError = ErrorDetermineExecutablePath -- cgit v1.2.3-59-g8ed1b