Skip to content

Commit e14502a

Browse files
author
Jonathan Chauncey
committed
Merge pull request #409 from jchauncey/fix-log-colorizing
fix(logs): Update the array index for determining the color category
2 parents e7a908b + 2ef8e67 commit e14502a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

client/cmd/apps.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ func printLogs(logs string) error {
175175
for _, log := range strings.Split(logs, `\\n\\n`) {
176176
category := "unknown"
177177
parts := strings.Split(strings.Split(log, " -- ")[0], " ")
178-
if len(parts) >= 2 {
179-
category = parts[1]
180-
}
178+
category = parts[0]
181179
colorVars := map[string]string{
182180
"Color": chooseColor(category),
183181
"Log": log,

0 commit comments

Comments
 (0)