Skip to content
Commit fcf46f9e authored by Filipe Brandenburger's avatar Filipe Brandenburger Committed by Zbigniew Jędrzejewski-Szmek
Browse files

journald: do not strip leading whitespace from messages

Keep leading whitespace for compatibility with older syslog
implementations.  Also useful when piping formatted output to the
`logger` command.  Keep removing trailing whitespace.

Tested with `pstree | logger` and checking that the output of
`journalctl | tail` included aligned and formatted output.

Confirmed that all test cases still pass as expected.

(cherry picked from commit ec5ff444)
parent 6bae4191
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment