Skip to content

Commit 6fd453f

Browse files
author
Matthew Fisher
committed
fix(cmd): strip printLogs with only one newline
1 parent 2ff93ba commit 6fd453f

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)