MINOR: init: add -dW and "zero-warning" to reject configs with warnings
authorWilly Tarreau <w@1wt.eu>
Wed, 15 Apr 2020 14:42:39 +0000 (16:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Apr 2020 14:42:39 +0000 (16:42 +0200)
commit3eb10b8e98d4eae05f9864e3b72fdd251c4f1a4b
tree3923be846a7aab7dcf46597b4b30834651eeb8e3
parentbebd2120649f0a3cc907ca207e76175979f77e55
MINOR: init: add -dW and "zero-warning" to reject configs with warnings

Since some systems switched to service managers which hide all warnings
by default, some users are not aware of some possibly important warnings
and get caught too late with errors that could have been detected earlier.

This patch adds a new global keyword, "zero-warning" and an equivalent
command-line option "-dW" to refuse to start in case any warning is
detected. It is recommended to use these with configurations that are
managed by humans in order to catch mistakes very early.
doc/configuration.txt
doc/management.txt
include/types/global.h
src/cfgparse-global.c
src/haproxy.c