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
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 72c4680..e37f84c 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -853,8 +853,9 @@
profiling.memory on
.endif
-Three other directives are provided to report some status:
+Four other directives are provided to report some status:
+ - .diag "message" : emit this message only when in diagnostic mode (-dD)
- .notice "message" : emit this message at level NOTICE
- .warning "message" : emit this message at level WARNING
- .alert "message" : emit this message at level ALERT
@@ -880,6 +881,9 @@
.notice "A=0"
.endif
+ .diag "WTA/2021-05-07: replace 'redirect' with 'return' after switch to 2.4"
+ http-request redirect location /goaway if ABUSE
+
2.5. Time format
----------------