diff options
author | Wolfy-J <[email protected]> | 2018-09-07 23:37:28 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-07 23:37:28 +0300 |
commit | 4dea95a525707af1a726e9af024e4abdbde28820 (patch) | |
tree | 14a8f49a93a48c1fba3d8e080ebc0b71301473c9 /cmd/rr/main.go | |
parent | f0bc4fc0da3a00cee746535bd9817f31e97bcb0d (diff) |
improved debug handlers (moved from common package)
Diffstat (limited to 'cmd/rr/main.go')
-rw-r--r-- | cmd/rr/main.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 01a5aaf3..c4eac19b 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -23,9 +23,6 @@ package main import ( - // colorful logging - "github.com/sirupsen/logrus" - rr "github.com/spiral/roadrunner/cmd/rr/cmd" // services (plugins) @@ -36,17 +33,17 @@ import ( // additional command handlers _ "github.com/spiral/roadrunner/cmd/rr/http" + "github.com/sirupsen/logrus" ) func main() { - rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true} - - rr.Container.Register(env.ID, env.NewService(map[string]string{"rr": rr.Version})) - + rr.Container.Register(env.ID, &env.Service{}) rr.Container.Register(rpc.ID, &rpc.Service{}) rr.Container.Register(http.ID, &http.Service{}) rr.Container.Register(static.ID, &static.Service{}) + rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true} + // you can register additional commands using cmd.CLI rr.Execute() } |