TylerBrock / saw

Fast, multi-purpose tool for AWS CloudWatch Logs
MIT License
1.41k stars 79 forks source link

Extra newlines in `saw get` output #74

Open a-h opened 2 years ago

a-h commented 2 years ago

There's an extra newline if your log entries already end with a newline.

image

I notice that if you're streaming logs, the newline gets stripped.

https://github.com/TylerBrock/saw/blob/master/blade/blade.go#L146-L147

Easy fix though.

https://github.com/a-h/saw/commit/21e6320f3620099f2fce2c72aedf86d3afbcb2bc

Then gives the expected output.

image