]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: opentracing: register config file and line number on log servers
authorMiroslav Zagorac <mzagorac@haproxy.com>
Wed, 7 Apr 2021 09:14:23 +0000 (11:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Apr 2021 09:10:27 +0000 (11:10 +0200)
In commit 9533a7038 new parameters have been added to the declaration
of function parse_logsrv().

This patch should be backported to all branches where the OpenTracing
filter is located.

addons/ot/src/parser.c

index b53d58d444adf3c0ec3e153a7819a20968aacf80..c7522e942d11a7240701b6ff4cd9ffdc0b9c501e 100644 (file)
@@ -490,7 +490,7 @@ static int flt_ot_parse_cfg_tracer(const char *file, int linenum, char **args, i
                }
        }
        else if (pdata->keyword == FLT_OT_PARSE_TRACER_LOG) {
-               if (parse_logsrv(args, &(flt_ot_current_tracer->proxy_log.logsrvs), kw_mod == KWM_NO, &err_log) == 0) {
+               if (parse_logsrv(args, &(flt_ot_current_tracer->proxy_log.logsrvs), kw_mod == KWM_NO, file, linenum, &err_log) == 0) {
                        FLT_OT_PARSE_ERR(&err, "'%s %s ...' : %s", args[0], args[1], err_log);
                        FLT_OT_FREE_CLEAR(err_log);