mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-11 05:48:41 +00:00
BUG/MINOR: cfgparse/stktable: fix error message on stktable_init() failure
As a result of copy paste error in 1b8e68e
("MEDIUM: stick-table: Stop
handling stick-tables as proxies."), postparsing stktable_init() failures
were reported as such for named peer tables:
"Proxy 'table_name': failed to initialize stick table."
Now they are correctly reported like this:
"Parsing [file:line]: failed to initialize 'table_name' stick-table."
This should be backported to every stable versions.
This commit is contained in:
parent
6376fe9142
commit
b6a9eca88d
@ -4399,7 +4399,7 @@ init_proxies_list_stage2:
|
||||
if (t->proxy)
|
||||
continue;
|
||||
if (!stktable_init(t)) {
|
||||
ha_alert("Proxy '%s': failed to initialize stick-table.\n", t->id);
|
||||
ha_alert("Parsing [%s:%d]: failed to initialize '%s' stick-table.\n", t->conf.file, t->conf.line, t->id);
|
||||
cfgerr++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user