From ade5cc504e2b082d0838cc93c3a185246fdc7834 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 10 Jun 2018 19:33:00 +0300 Subject: nicer worker list --- cmd/rr/http/reset.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/rr/http/reset.go') diff --git a/cmd/rr/http/reset.go b/cmd/rr/http/reset.go index f5c100cc..2583f8cd 100644 --- a/cmd/rr/http/reset.go +++ b/cmd/rr/http/reset.go @@ -26,6 +26,7 @@ import ( rr "github.com/spiral/roadrunner/cmd/rr/cmd" "github.com/spiral/roadrunner/rpc" "github.com/spiral/roadrunner/service" + "github.com/spiral/roadrunner/cmd/rr/utils" ) func init() { @@ -48,11 +49,13 @@ func reloadHandler(cmd *cobra.Command, args []string) error { } defer client.Close() + utils.Printf("restarting http worker pool: ") + var r string if err := client.Call("http.Reset", true, &r); err != nil { return err } - rr.Logger.Info("http: restarting worker pool") + utils.Printf("done") return nil } -- cgit v1.2.3