]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: global: define diagnostic mode of execution
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Mar 2021 08:29:07 +0000 (10:29 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Apr 2021 16:03:37 +0000 (18:03 +0200)
commit7b01a8dbdd049a3d0778f02bf0876ecc5fc48c16
tree7843202c52cdb1c6c390e2f38f251ffb08a249b7
parent374edc70ba7d1c81fcaa29457eac5dffd1caf48d
MINOR: global: define diagnostic mode of execution

Define MODE_DIAG which is used to run haproxy in diagnostic mode. This
mode is used to output extra warnings about possible configuration
blunder or sub-optimal usage. It can be activated with argument '-dD'.

A new output function ha_diag_warning is implemented reserved for
diagnostic output. It serves to standardize the format of diagnostic
messages.

A macro HA_DIAG_WARN_COND is also available to automatically check if
diagnostic mode is on before executing the diagnostic check.
doc/management.txt
include/haproxy/errors.h
include/haproxy/global-t.h
src/haproxy.c
src/log.c