]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: server: move alert traces in parse_server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Mar 2021 10:20:52 +0000 (11:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 18 Mar 2021 14:37:05 +0000 (15:37 +0100)
commit9394a9444e6c4af060f7d116189f53633c6100ca
tree53701be0e031d466867ff900a205ade2958eea0f
parenta8f442e0785c9dc13343ca146ad7e929dfb71468
REORG: server: move alert traces in parse_server

Move every ha_alert calls in parsing functions into parse_server.
Parsing functions now support a pointer-to-string argument which will be
allocated with an error message if needed via memprintf.

parse_server has then the responsibility to display errors with ha_alert.

This is groundwork for dynamic server. No traces should be printed on
stderr as a response to a cli command. cli_err will replace ha_alert in
this case.
src/server.c