BUG/MINOR: logs: fix log-steps extra log origins selection
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 21 Jul 2025 13:18:37 +0000 (15:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Aug 2025 06:39:05 +0000 (08:39 +0200)
commit1e7317eaae68f7a34f7cecebfc02594feebf72f3
tree5baa01cacb103718e8b45c16c3ef84804bfd338e
parentba9ee8147702b5cc5c400b7521afc2f13659eb2c
BUG/MINOR: logs: fix log-steps extra log origins selection

Willy noticed that it was not possible to select extra log origins using
log-steps directive. Extra origins are the one registered using
log_orig_register() such as http-req.

Reason was the error path was always executed during extra log origin
matching for log-steps parser, while it should only be executed if no
match was found.

It should be backported to 3.1.

(cherry picked from commit 563b4fafc26f20ff0e799811f7cea7dca01f2c9e)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
(cherry picked from commit 54dee5bb5da5e23496dbd5ae86807a31a07bd7a6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/log.c