summaryrefslogtreecommitdiff
path: root/cmd/rr/debug
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rr/debug')
-rw-r--r--cmd/rr/debug/debugger.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/rr/debug/debugger.go b/cmd/rr/debug/debugger.go
index 0621285b..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.
@@ -45,7 +46,6 @@ func (s *debugger) listener(event int, ctx interface{}) {
"<white+hb>worker.%v</reset> <yellow>killed</red>",
*w.Pid,
))
-
case roadrunner.EventWorkerError:
err := ctx.(roadrunner.WorkerError)
s.logger.Error(utils.Sprintf(
@@ -55,6 +55,12 @@ func (s *debugger) listener(event int, ctx interface{}) {
))
}
+ // outputs
+ switch event {
+ case roadrunner.EventStderrOutput:
+ s.logger.Warning(strings.Trim(string(ctx.([]byte)), "\r\n"))
+ }
+
// rr server events
switch event {
case roadrunner.EventServerFailure:
@@ -68,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 {