]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: haring: support remapping LF in contents with CR VT
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Aug 2022 10:09:41 +0000 (12:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Aug 2022 10:11:30 +0000 (12:11 +0200)
commitcc51c9a7338d60ca60e730b03113a76269702874
tree52a472375e3ee0d48cfbaf2c9f3124d0b7116bf8
parent75014fcd4df18c1c1755ce934a5bb20477b64935
DEV: haring: support remapping LF in contents with CR VT

Some traces may contain LF characters which are quite cumbersome to
deal with using the common tools. Given that the utility still has
access to the raw traces and knows where the delimiters are, let's
offer the possibility to remap LF characters to a different sequence.

Here we're using CR VT which will have the same visual appearance but
will remain on the same line for grep etc. This behavior is enabled by
the -l option. It's not enabled by default because it's 50% slower due
to content processing.
dev/haring/haring.c