]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: silence .notice/.warning/.alert in discovery mode
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Apr 2025 07:06:25 +0000 (09:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Apr 2025 07:06:25 +0000 (09:06 +0200)
commit2c779f3938d49fbb0955e972b4f494cdadbef8c1
tree08aa9854e1b8d2f4a37e7ce18a3e3b189b1f1730
parent9f00702dc639e448f36a3185269f5e1b893d85d3
BUG/MINOR: config: silence .notice/.warning/.alert in discovery mode

When first pre-parsing the config to detect the presence or absence of
the master mode, we must not emit messages because they are not supposed
to be visible at this point, otherwise they appear twice each. The
pre-parsing, also called discovery mode, is only for internal use,
thus it should remain silent.

This should be backported to 3.1 where this mode was introduced.
src/cfgparse.c