mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: sample: postresolve sink names in debug() converter
debug() converter used to resolve sink names during parsing time. Because of this, we were unable to specify sink names that were defined after the debug() converter was placed. Like in the previous commit, let's implement proper postparsing for the debug() converter, in order to be able to use sink names that are about to be defined later in the config file.
This commit is contained in:
parent
ed266589b6
commit
7144e60cd2
@ -1819,9 +1819,9 @@ static int smp_check_debug(struct arg *args, struct sample_conv *conv,
|
||||
if (args[1].type == ARGT_STR)
|
||||
name = args[1].data.str.area;
|
||||
|
||||
sink = sink_find(name);
|
||||
sink = sink_find_early(name, "debug converter", file, line);
|
||||
if (!sink) {
|
||||
memprintf(err, "No such sink '%s'", name);
|
||||
memprintf(err, "Memory error while setting up sink '%s'", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user