]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: split the CLI "trace" parser in CLI vs statement
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Nov 2022 16:18:04 +0000 (17:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Nov 2022 16:55:53 +0000 (17:55 +0100)
commitc11f1cdf4d60a9b4c27bd681f6b242de7cd8d3b7
treef76e5dcc1540c1b180d8937037feaf2edae112a0
parent8e6ad2548ce933ef52113b20f2766d66d16f3e39
MINOR: trace: split the CLI "trace" parser in CLI vs statement

In order to be able to reuse the "trace" statements elsewhere (e.g.
global section), we'll first need to split its parser. It turns out
that the whole thing is self-contained inside a single function that
emits a single message on warning/error or nothing on success. That's
quite easy to split in two parts, the one that does the job and produces
the status message and the one that sends it to the CLI. That's what
this patch does.
src/trace.c