Skip to content

`bgd logstream read`: do not print extra new lines

Santiago Gil requested to merge santigl/logstream-read-no-extra-new-line into master

Description

This slighly changes the way the lines received are printed so that they are rendered as they were sent by the writer.

Changes proposed in this merge request:

  • cmd_logstream.py: when printing lines in read() do not terminate them with '\n'.

An output such as:

> bgd logstream read foo/logStreams/8300959b-6c71-4feb-bf01-1c24bbefd7ee

D
ebian GN
U/Linux 
comes wi
th ABSOL
UTELY NO
WARRANT
Y, to th
e extent

permitt
ed by ap
plicable
law.

now becomes:

> bgd logstream read foo/logStreams/26819d57-0631-4250-86b0-260a63ab4d49                      

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Merge request reports