]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2/trace: only decode the start-line at verbosity other than "minimal"
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 05:11:30 +0000 (07:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 05:39:59 +0000 (07:39 +0200)
This is as documented in "trace h2 verbosity", level "minimal" only
features flags and doesn't perform any decoding at all, "simple" does,
just like "clean" which is the default for end uesrs.

src/mux_h2.c

index 7847230219d4e33f49fb527432a320c8143fea1b..3097fc45c48cb31197d7491e696c8a9a71d143bb 100644 (file)
@@ -525,7 +525,7 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s
        else
                htx = NULL;
 
-       if (level == TRACE_LEVEL_USER && htx && (pos = htx_get_head(htx)) != -1) {
+       if (level == TRACE_LEVEL_USER && src->verbosity != H2_VERB_MINIMAL && htx && (pos = htx_get_head(htx)) != -1) {
                const struct htx_blk    *blk  = htx_get_blk(htx, pos);
                const struct htx_sl     *sl   = htx_get_blk_ptr(htx, blk);
                enum htx_blk_type        type = htx_get_blk_type(blk);