Skip to content

Commit 85c6648

Browse files
committed
fix: remove extra newlines in log output
1 parent 982f582 commit 85c6648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blade/blade.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ func (b *Blade) GetEvents() (err error) {
134134
handlePage := func(page *cloudwatchlogs.FilterLogEventsOutput, lastPage bool) bool {
135135
for _, event := range page.Events {
136136
if b.output.Pretty {
137-
fmt.Println(formatEvent(formatter, event))
137+
fmt.Println(strings.TrimRight(formatEvent(formatter, event), "\n"))
138138
} else {
139-
fmt.Println(*event.Message)
139+
fmt.Println(strings.TrimRight(*event.Message, "\n"))
140140
}
141141
}
142142
return !lastPage

0 commit comments

Comments
 (0)