mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: stream: make strm_dump_to_buffer() show the list of filters
That's one of the rare pieces of information that was not present in the full dump and only in the short one, the list of filters the stream is subscribed to (however the current filter was present and more detailed).
This commit is contained in:
parent
3e630a9871
commit
5ddeba7af3
1 changed files with 12 additions and 0 deletions
12
src/stream.c
12
src/stream.c
|
|
@ -3472,6 +3472,18 @@ static void strm_dump_to_buffer(struct buffer *buf, const struct stream *strm, u
|
|||
tmpctx->t->nice, tmpctx->t->calls, read_freq_ctr(&tmpctx->call_rate));
|
||||
}
|
||||
|
||||
if (HAS_FILTERS(strm)) {
|
||||
const struct filter *flt;
|
||||
|
||||
chunk_appendf(buf, " filters={");
|
||||
list_for_each_entry(flt, &strm->strm_flt.filters, list) {
|
||||
if (flt->list.p != &strm->strm_flt.filters)
|
||||
chunk_appendf(buf, ", ");
|
||||
chunk_appendf(buf, "%p=\"%s\"", flt, FLT_ID(flt));
|
||||
}
|
||||
chunk_appendf(buf, "}\n");
|
||||
}
|
||||
|
||||
chunk_appendf(buf,
|
||||
" req=%p (f=0x%06x an=0x%x pipe=%d tofwd=%d total=%lld)\n"
|
||||
" an_exp=%s buf=%p data=%p o=%u p=%u i=%u size=%u\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue