diff options
Diffstat (limited to 'cmd/rr/debug/debugger.go')
-rw-r--r-- | cmd/rr/debug/debugger.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/rr/debug/debugger.go b/cmd/rr/debug/debugger.go index 6c23b057..0dca43de 100644 --- a/cmd/rr/debug/debugger.go +++ b/cmd/rr/debug/debugger.go @@ -5,6 +5,7 @@ import ( "github.com/spiral/roadrunner" "github.com/spiral/roadrunner/cmd/rr/utils" "github.com/spiral/roadrunner/service/http" + "strings" ) // Listener creates new debug listener. @@ -57,7 +58,7 @@ func (s *debugger) listener(event int, ctx interface{}) { // outputs switch event { case roadrunner.EventStderrOutput: - s.logger.Warning(string(ctx.([]byte))) + s.logger.Warning(strings.Trim(string(ctx.([]byte)), "\r\n")) } // rr server events @@ -73,6 +74,8 @@ func (s *debugger) listener(event int, ctx interface{}) { case roadrunner.EventPoolError: s.logger.Error(utils.Sprintf("<red>%s</reset>", ctx)) } + + //s.logger.Warning(event, ctx) } func statusColor(status int) string { |