]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: add parser for "log", "log-tag" and "unique-id-header"
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 09:14:48 +0000 (11:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commita941ab6b0998b949355ffc7c424aa51e27e01d53
tree48da6337f813dff1a049b4ea8f593778f3e288ba
parent925c846b0ff198519cf1810eb7904954033a5074
CLEANUP: cfgparse-listen: add parser for "log", "log-tag" and "unique-id-header"

The three keywords were moved to a new proxy_parse_log_opts() function
registered in cfg_kws, making them discoverable via "-dKcfg". The "log"
keyword consults cfg_curr_kwm to detect "no log", and the header name is
now allocated before the previous one is released. Arguably we could have
moved unique-id-header in its own function, or move them all to another
existing function, this doesn't change much. They were taken together
as they were grouped in the original code block.
src/cfgparse-listen.c