]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: Allow to use if/unless conditionnals for do-log action
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jan 2025 08:44:06 +0000 (09:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jan 2025 08:44:08 +0000 (09:44 +0100)
commita785a20befeb858d47c558378e830e0f62060d21
tree26bee6d3f50d53ca40bc6e117be4540ddab48a7f
parentbbd1cedefcdb39b4ea2e82c0ba2ca219a2fb4f5f
BUG/MINOR: log: Allow to use if/unless conditionnals for do-log action

The do-log action does not accept argument for now. But an error was
triggered if any extra arguments was found, preventing the use of if/unless
conditionnals.

When an action is parsed, expected arguments must be tested to detect
missing ones but not unexpected extra arguments because this should be
performed by the conditionnal parser. So just removing the test in the
do-log parser function is enough to fix the issue.

This patch must be backported to 3.1.
src/log.c