BUG/MEDIUM: logs: fix trailing zeros on log message.
authorEmeric Brun <ebrun@haproxy.com>
Thu, 28 May 2020 12:21:33 +0000 (14:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2020 13:32:02 +0000 (15:32 +0200)
commitf04244848065cced26b65034391e996420fb6d95
tree1d0ec383740eb2c15a8b5cf9fed5a323e926a838
parent6af5efb8e783097ea8e543c324d6259ed35739e0
BUG/MEDIUM: logs: fix trailing zeros on log message.

This patch removes all trailing LFs and Zeros from
log messages. Previously only the last LF was removed.

It's a regression from e8ea0ae6f6 "BUG/MINOR: logs:
prevent double line returns in some events."

This should fix github issue #654

(cherry picked from commit fa9d780119adc687e58a8b09e55780a0173b4ab4)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/log.c