]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: log: fix "http-send-name-header" ignore warning message
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 10 Jun 2024 16:11:49 +0000 (18:11 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 08:58:55 +0000 (10:58 +0200)
Warning message to indicate that the "http-send-name-header" option is
ignored for backend in "mode log" was referenced using its internal
struct wording instead of public name (as seen in the documentation).

Let's fix that.

It may be backported with c7783fb ("MINOR: log/backend: prevent
"http-send-name-header" use with LOG mode") in 2.9.

src/log.c

index 7b632c78d31d6729b5e160212e08e10ea9d74a0a..5e78b760f003a663fdcc47cc430cff0ad173ed52 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -1199,7 +1199,7 @@ static int _postcheck_log_backend_compat(struct proxy *be)
                free_stick_rules(&be->sticking_rules);
        }
        if (isttest(be->server_id_hdr_name)) {
-               ha_warning("Cannot set \"server_id_hdr_name\" with 'mode log' in %s '%s'. It will be ignored.\n",
+               ha_warning("Cannot set \"http-send-name-header\" with 'mode log' in %s '%s'. It will be ignored.\n",
                           proxy_type_str(be), be->id);
 
                err_code |= ERR_WARN;