]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: move the log keywords to a single parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 14:48:59 +0000 (16:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitf6b04058fbc326c80ef46d182b3f8d17a9964af2
treee1e2e5981714b8fab9fc696ceaf1d8e5c99f8fb0
parentee3346360807fa2e3cd0fdf7ce3e96b4b15265fb
CLEANUP: cfgparse-global: move the log keywords to a single parser

"log", "log-send-hostname" and "log-tag" are all related to the logging
setup, so they were moved together to a new cfg_parse_global_log_opts()
function and registered in cfg_kws so as to become discoverable via
"-dKcfg". The "log" keyword uses cfg_curr_kwm to detect "no log".

Like for previous commits, the result of the strdup() of the hostname
is now checked, and the duplicate hostname only emits a warning.
src/cfgparse-global.c