summaryrefslogtreecommitdiff
path: root/cmd/rr/http/reset.go
diff options
context:
space:
mode:
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
}