From 94f1dcf119e6a5cc796eecd9de986cdd0e3e77ec Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 30 Aug 2019 07:11:30 +0200 Subject: [PATCH] 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. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 784723021..3097fc45c 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);