TylerBrock / saw

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

Trim extra line ending from message before printing #50

Closed ghost closed 1 year ago

ghost commented 4 years ago

When using saw get --rawString, it prints double line endings if original log messages already contains a line ending on its own. Since we're using Println to output messages, it adds additional line ending anyway, so we'd better trim line ending from log message (if any) to get more compact output when using --rawString.

Similar change was made to saw watch --raw in https://github.com/TylerBrock/saw/pull/20