]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: check: Don't dump buffers state in check traces for external checks
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Jun 2026 19:50:11 +0000 (21:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Jun 2026 19:50:12 +0000 (21:50 +0200)
In healthcheck trace messages, there is no reason to dump the in/out buffers
state for external checks. So let's skip this part in that case.

src/check.c

index f3df19077ed98163426f97f8da379f2e469de5d0..1e166322aab573dcfc1a256b09058089fd9b497c 100644 (file)
@@ -232,6 +232,9 @@ static void check_trace(enum trace_level level, uint64_t mask,
                chunk_appendf(&trace_buf, " sc=%p(0x%08x)", check->sc, check->sc->flags);
        }
 
+       if (check->type != PR_O2_TCPCHK_CHK)
+               return;
+
        if (mask & CHK_EV_TCPCHK) {
                const char *type;