diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-30 17:37:21 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-07-19 14:21:49 +0200 |
commit | c24f1f9df1a79f413dc1cdad27341027e58d2a1f (patch) | |
tree | ec925610539845afd5efcd4e603b52fcd12e89b3 /man/systemd.exec.xml | |
parent | bb557f90f842fb9646a83fd3c21ba359bb8c0f28 (diff) |
sd-journal: when formatting log messages, implicitly strip trailing whitespace
When converting log messages from human readable text into binary records to
send off to journald in sd_journal_print(), strip trailing whitespace in the
log message. This way, handling of logs made via syslog(), stdout/stderr and
sd_journal_print() are treated the same way: trailing (but not leading)
whitespace is automatically removed, in particular \n and \r. Note that in case
of syslog() and stdout/stderr based logging the stripping takes place
server-side though, while for the native protocol based transport this takes
place client-side. This is because in the former cases conversion from
free-form human-readable strings into structured, binary log records takes
place on the server-side while for journal-native logging it happens on the
client side, and after conversion into binary records we probably shouldn't
alter the data anymore.
See: #3416
Diffstat (limited to 'man/systemd.exec.xml')
0 files changed, 0 insertions, 0 deletions