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.
This commit is contained in:
Willy Tarreau 2019-08-30 07:11:30 +02:00
parent f7dd5191cd
commit 94f1dcf119

View 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);