]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: handle extra log origins in _process_send_log_override()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 31 Jul 2024 12:45:32 +0000 (14:45 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Sep 2024 14:53:07 +0000 (16:53 +0200)
commit6567e3768013e3dc489ef9f311b9af999a884eda
tree88e2324d7e745e28a966f58e732bee8e9c18b4eb
parent818475c5cc7a429f43d04209add998d6274d9c79
MINOR: log: handle extra log origins in _process_send_log_override()

Thanks to the previous commit, it is now possible to register additional
log origins that may be used from log-profile section as 'on' steps.

As such, let's make _process_send_log_override() function aware of them
by trying to lookup in the tree of extra logging steps in the default
switch-case catchall. If the log origin id matches with the id of the
extra logging step, we use the associated log format instead of the
"any" log format.
src/log.c