TUN-1786: Remove low-level Windows service logging
This commit is contained in:
parent
809d2f3f28
commit
945320880a
|
@ -135,14 +135,11 @@ func (s *windowsService) Execute(serviceArgs []string, r <-chan svc.ChangeReques
|
||||||
case c := <-r:
|
case c := <-r:
|
||||||
switch c.Cmd {
|
switch c.Cmd {
|
||||||
case svc.Interrogate:
|
case svc.Interrogate:
|
||||||
elog.Info(1, fmt.Sprintf("control request 1 #%d", c))
|
|
||||||
statusChan <- c.CurrentStatus
|
statusChan <- c.CurrentStatus
|
||||||
case svc.Stop:
|
case svc.Stop:
|
||||||
elog.Info(1, "received stop control request")
|
|
||||||
close(s.graceShutdownC)
|
close(s.graceShutdownC)
|
||||||
statusChan <- svc.Status{State: svc.StopPending}
|
statusChan <- svc.Status{State: svc.StopPending}
|
||||||
case svc.Shutdown:
|
case svc.Shutdown:
|
||||||
elog.Info(1, "received shutdown control request")
|
|
||||||
close(s.shutdownC)
|
close(s.shutdownC)
|
||||||
statusChan <- svc.Status{State: svc.StopPending}
|
statusChan <- svc.Status{State: svc.StopPending}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue