]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: change the detail_level to per-source verbosity
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Aug 2019 06:24:16 +0000 (08:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Aug 2019 15:11:25 +0000 (17:11 +0200)
commit370a69487974a936b0f2aeabc9327583a1629b84
treee9ff8562245cf2ca018dc8e88a5fb4a5c8d7e22c
parent052ad360cd9b34570c28cead539b74a1ebfef353
MINOR: trace: change the detail_level to per-source verbosity

The detail level initially based on syslog levels is not used, while
something related is missing, trace verbosity, to indicate whether or
not we want to call the decoding callback and what level of decoding
we want (raw captures etc). Let's change the field to "verbosity" for
this. A verbosity of zero means that the decoding callback is not
called, and all other levels are handled by this callback and are
source-specific. The source is now prompted to list the levels that
are proposed to the user. When the source doesn't define anything,
"quiet" and "default" are available.
doc/management.txt
include/proto/trace.h
include/types/trace.h
src/trace.c