summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-10-14 16:54:49 +0300
committerGitHub <[email protected]>2018-10-14 16:54:49 +0300
commit1e72bacd8cc9b2e6f41f31846076ac53712a2568 (patch)
tree57da04dc9143fb6813ea0a9c9fcb125faad71320
parent0e68fbae9acd2325bc4f6b2fd3ae471e76216b4c (diff)
parent47c6ac261fd8e70b63ff8256841273dc6c24e151 (diff)
Merge pull request #50 from spiral/feature/split-debug-messages
Feature/split debug messages
-rw-r--r--cmd/util/debug.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/util/debug.go b/cmd/util/debug.go
index 7be258ec..f64b9bc4 100644
--- a/cmd/util/debug.go
+++ b/cmd/util/debug.go
@@ -29,10 +29,14 @@ 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(strings.Trim(line, "\r\n"))
+ }
+
return true
}