summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/util/debug.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/cmd/util/debug.go b/cmd/util/debug.go
index 7be258ec..ac3eaeca 100644
--- a/cmd/util/debug.go
+++ b/cmd/util/debug.go
@@ -29,10 +29,17 @@ func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool {
// outputs
switch event {
case roadrunner.EventStderrOutput:
- logger.Warning(Sprintf(
- "<yellow>%s</reset>",
- strings.Trim(string(ctx.([]byte)), "\r\n"),
- ))
+ for _, line := range strings.Split(string(ctx.([]byte)), "\n") {
+ if line == "" {
+ continue
+ }
+
+ logger.Warning(Sprintf(
+ "<yellow>%s</reset>",
+ strings.Trim(line, "\r\n"),
+ ))
+ }
+
return true
}