From d314b919743ce156e72ba59d0f5d38894d9d60e0 Mon Sep 17 00:00:00 2001 From: "milkywayrivers@gmail.com" Date: Mon, 20 May 2019 16:40:26 +0800 Subject: [PATCH] fix missing log bugs when run as service --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 0f861195..192cb718 100644 --- a/main.go +++ b/main.go @@ -210,9 +210,7 @@ func main() { if len(tail) > 0 { cmd := strings.ToLower(tail[0]) if cmd == "install" || cmd == "stop" || cmd == "start" || cmd == "uninstall" { - if cmd == "install" || cmd == "stop" { - figure.NewFigure("EasyDarwin", "", false).Print() - } + figure.NewFigure("EasyDarwin", "", false).Print() log.Println(svcConfig.Name, cmd, "...") if err = service.Control(s, cmd); err != nil { log.Println(err)