diff options
author | Wolfy-J <[email protected]> | 2018-05-29 13:17:03 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-05-29 13:17:03 +0300 |
commit | fd95f32812f4b8f932225ed273b0109f9514ec91 (patch) | |
tree | 9161c57422aca911d5bc81e1b5bddee694e5d9a1 /cmd | |
parent | ebef51e570fbb1d8761275b44bbdbf2ea4dd33a6 (diff) |
fixing tests
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr-php/cmd/serve.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/rr-php/cmd/serve.go b/cmd/rr-php/cmd/serve.go index 9540a986..cac830ac 100644 --- a/cmd/rr-php/cmd/serve.go +++ b/cmd/rr-php/cmd/serve.go @@ -20,6 +20,7 @@ import ( "os/exec" "log" "time" + "github.com/sirupsen/logrus" ) func init() { @@ -43,9 +44,18 @@ func serveHandler(cmd *cobra.Command, args []string) { DestroyTimeout: time.Minute, }) + r.Observe(func(event int, ctx interface{}) { + logrus.Info(ctx) + }) + if err != nil { panic(err) } + for i := 0; i < 10; i++ { + r.Exec(&roadrunner.Payload{}) + } + log.Print(r.Workers()) + } |