From d071a736c4cfdb05aa5c2a4fbf8db4dae75c696e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 26 Jun 2026 11:10:43 +0200 Subject: [PATCH] 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(). --- src/trace.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/trace.c b/src/trace.c index 6060d4df2..23636966f 100644 --- a/src/trace.c +++ b/src/trace.c @@ -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 */ -- 2.47.3