From 5fc8f8198ee17734b292dc7bf3f534fd5957db07 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 23 Jun 2018 13:16:23 +0300 Subject: support for realtime error aggegration --- cmd/rr/debug/debugger.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/rr/debug/debugger.go b/cmd/rr/debug/debugger.go index 0621285b..6c23b057 100644 --- a/cmd/rr/debug/debugger.go +++ b/cmd/rr/debug/debugger.go @@ -45,7 +45,6 @@ func (s *debugger) listener(event int, ctx interface{}) { "worker.%v killed", *w.Pid, )) - case roadrunner.EventWorkerError: err := ctx.(roadrunner.WorkerError) s.logger.Error(utils.Sprintf( @@ -55,6 +54,12 @@ func (s *debugger) listener(event int, ctx interface{}) { )) } + // outputs + switch event { + case roadrunner.EventStderrOutput: + s.logger.Warning(string(ctx.([]byte))) + } + // rr server events switch event { case roadrunner.EventServerFailure: -- cgit v1.2.3