From: Willy Tarreau Date: Fri, 30 Aug 2019 05:11:30 +0000 (+0200) Subject: MINOR: mux-h2/trace: only decode the start-line at verbosity other than "minimal" X-Git-Tag: v2.1-dev2~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94f1dcf119e6a5cc796eecd9de986cdd0e3e77ec;p=thirdparty%2Fhaproxy.git MINOR: mux-h2/trace: only decode the start-line at verbosity other than "minimal" 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 7847230219..3097fc45c4 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -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);