MINOR: config: add a new message directive: .diag
authorWilly Tarreau <w@1wt.eu>
Fri, 7 May 2021 06:59:50 +0000 (08:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 May 2021 07:06:40 +0000 (09:06 +0200)
commit7190b987abd5ecb5ea31b368cc3e3df692022f5e
tree32a72536dda8093ab84bdce696db2538d418ee7f
parent9f903af510771fc47525c7161c0c94763dff9e0d
MINOR: config: add a new message directive: .diag

This one works just like .notice/.warning/.alert except that it prints
the message at level "DIAG" only when haproxy runs in diagnostic mode
(-dD). This can be convenient for example to pass a few hints to help
locate certain config parts or to leave messages about certain temporary
workarounds.

Example:

  .diag "WTA/2021-05-07: $.LINE: replace 'redirect' with 'return' after final switch to 2.4"
         http-request redirect location /goaway if ABUSE
doc/configuration.txt
src/cfgparse.c