]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log: lf_* build helpers now take a ctx argument
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 22 Apr 2024 08:12:42 +0000 (10:12 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 16:39:31 +0000 (18:39 +0200)
commit3f2e8d0ed2b5e1b3b1603dfa5199a7b7ef82e1cf
tree504f6a1c0508451b48e77efe8757beac6c38b17e
parentf7cb384f1a34bda53d7d62da26f5ba864da723de
MEDIUM: log: lf_* build helpers now take a ctx argument

Add internal lf_buildctx struct that is only used inside
sess_build_logline() scope and is passed to lf_* log building helpers
to expose current building context. For now, node options and the in_text
counter are stored in the ctx struct. Thanks to this change, lf_* building
functions don't depend on a logformat_node struct pointer, and may be used
in a standalone manner as long as a build context is provided.

Also, global options are now handled explictly in sess_build_logline() to
make sure that global options are always considered even if they were not
duplicated on every nodes.

No functional change should be expected.
src/log.c