Skip to content

Commit 948a83f

Browse files
Darleletcapflam
authored andcommitted
MINOR: log: fix "http-send-name-header" ignore warning message
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. (cherry picked from commit e5ccfda) Signed-off-by: Christopher Faulet <[email protected]>
1 parent 471a1b2 commit 948a83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ static int _postcheck_log_backend_compat(struct proxy *be)
11991199
free_stick_rules(&be->sticking_rules);
12001200
}
12011201
if (isttest(be->server_id_hdr_name)) {
1202-
ha_warning("Cannot set \"server_id_hdr_name\" with 'mode log' in %s '%s'. It will be ignored.\n",
1202+
ha_warning("Cannot set \"http-send-name-header\" with 'mode log' in %s '%s'. It will be ignored.\n",
12031203
proxy_type_str(be), be->id);
12041204

12051205
err_code |= ERR_WARN;

0 commit comments

Comments
 (0)