diff --git a/include/haproxy/trace-t.h b/include/haproxy/trace-t.h index 2d32d99f2..85cdf41b3 100644 --- a/include/haproxy/trace-t.h +++ b/include/haproxy/trace-t.h @@ -166,6 +166,7 @@ struct trace_ctx { struct trace_source { /* source definition */ const struct ist name; + const struct ist alias; const char *desc; const struct trace_event *known_events; struct list source_link; // element in list of known trace sources diff --git a/src/trace.c b/src/trace.c index 68e98bbc4..6060d4df2 100644 --- a/src/trace.c +++ b/src/trace.c @@ -386,7 +386,7 @@ struct trace_source *trace_find_source(const char *name) const struct ist iname = ist(name); list_for_each_entry(src, &trace_sources, source_link) - if (isteq(src->name, iname)) + if (isteq(src->name, iname) || isteq(src->alias, iname)) return src; return NULL; }