summaryrefslogtreecommitdiff
path: root/cmd/rr/http/reset.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 19:33:00 +0300
committerWolfy-J <[email protected]>2018-06-10 19:33:00 +0300
commitade5cc504e2b082d0838cc93c3a185246fdc7834 (patch)
tree5625fb06ff16209b76263a1acbe857c141ba5eba /cmd/rr/http/reset.go
parentcb3e7a6b4ec294e7c44c0752f88ffea2297d58b9 (diff)
nicer worker list
Diffstat (limited to 'cmd/rr/http/reset.go')
-rw-r--r--cmd/rr/http/reset.go5
1 files changed, 4 insertions, 1 deletions
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("<green>restarting http worker pool</reset>: ")
+
var r string
if err := client.Call("http.Reset", true, &r); err != nil {
return err
}
- rr.Logger.Info("http: restarting worker pool")
+ utils.Printf("<green+hb>done</reset>")
return nil
}