From 1010cc2b54b257be61b47110d10f39a9d77e0917 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Wed, 13 Mar 2013 22:00:34 -0700 Subject: [PATCH] Fix windows build. --- service_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_windows.go b/service_windows.go index 5c88c5a..5f702a4 100644 --- a/service_windows.go +++ b/service_windows.go @@ -27,7 +27,7 @@ func (ws *windowsService) Execute(args []string, r <-chan svc.ChangeRequest, cha changes <- svc.Status{State: svc.StartPending} if err := ws.onStart(); err != nil { - ws.LogError(err.Error()) + ws.Error(err.Error()) return true, 1 } @@ -41,7 +41,7 @@ loop: case svc.Stop, svc.Shutdown: changes <- svc.Status{State: svc.StopPending} if err := ws.onStop(); err != nil { - ws.LogError(err.Error()) + ws.Error(err.Error()) changes <- svc.Status{State: svc.Running, Accepts: cmdsAccepted} continue loop }