]> git.kaiwu.me - haproxy.git/commit
MINOR: http: add a global setting to decide on warnings for http rules
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 10:33:23 +0000 (11:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 17:12:23 +0000 (18:12 +0100)
commit09e3f130578476760034e48d3d45c8b72b6776fb
tree60eba5cce728bd7b358e3d0beb26531985e93f88
parente5efb022e7c1a7ff5584671a79ebfe0f416f219d
MINOR: http: add a global setting to decide on warnings for http rules

The default choice of "notice" as level to emit a warning for an
http-request rule relying on unreliable processing may not always be
the best choice. This commit adds a new global "on-unreliable-rules"
directives which takes 3 parameters, "notice" (the default), "warn"
and "ignore". Choosing "warn" will emit a warning instead of a notice,
so that a config using "zero-warning" will detect them. This might be
helpful after a config was sanitized in order to make sure no new
warnings are introduced. And "ignore" may be used to silence all
messages when migrating a config.
doc/configuration.txt
src/http_rules.c