CLEANUP: trace: remove backend retrieval attempt from conn->target

Since we may no longer see conn->target point to the proxy, let's drop
the retrieval attempt for a backend there in __trace_enabled().
This commit is contained in:
Willy Tarreau 2026-06-26 11:10:43 +02:00
parent 7adf94cfe1
commit d071a736c4

View file

@ -181,9 +181,6 @@ int __trace_enabled(enum trace_level level, uint64_t mask, struct trace_source *
if (ctx.srv && !ctx.be)
ctx.be = ctx.srv->proxy;
if (!ctx.be && ctx.conn)
ctx.be = objt_proxy(ctx.conn->target);
/* TODO: add handling of filters here, return if no match (not even update states) */
/* check if we need to start the trace now */