summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-23 13:16:23 +0300
committerWolfy-J <[email protected]>2018-06-23 13:16:23 +0300
commit5fc8f8198ee17734b292dc7bf3f534fd5957db07 (patch)
tree67f894b509302508d8e1793c28f4fe6c680cab9b
parent38d694411abbdb0c31b08b96452fa0604a93418a (diff)
support for realtime error aggegration
-rw-r--r--cmd/rr/debug/debugger.go7
1 files changed, 6 insertions, 1 deletions
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{}) {
"<white+hb>worker.%v</reset> <yellow>killed</red>",
*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: