Skip to content

Commit cb24ddb

Browse files
author
Matthew Fisher
committed
Merge pull request #60 from bacongobbler/202-deis-logs-response
fix(cmd): strip printLogs with only one newline
2 parents 2ff93ba + 6fd453f commit cb24ddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func AppLogs(appID string, lines int) error {
172172

173173
// printLogs prints each log line with a color matched to its category.
174174
func printLogs(logs string) error {
175-
for _, log := range strings.Split(logs, "\\n\\n") {
175+
for _, log := range strings.Split(logs, `\n`) {
176176
category := "unknown"
177177
parts := strings.Split(strings.Split(log, " -- ")[0], " ")
178178
category = parts[0]

0 commit comments

Comments
 (0)