]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: make trace() now also take a level in argument
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Aug 2019 15:57:57 +0000 (17:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Aug 2019 18:21:00 +0000 (20:21 +0200)
commit5da408818b1a0c94350dca904b8a66f3888b8c7b
treea4bab0e6140f91d650f3d82667dcf05c67f0923e
parent419bd49f0b55fd71bb39b905d9e59f29aa9484a7
MINOR: trace: make trace() now also take a level in argument

This new "level" argument will allow the trace sources to label the
traces for different purposes, and filter out some of them if they
are not relevant to the current target. Right now we have 5 different
levels:
  - USER : the least verbose one, only a few functional information
  - PAYLOAD: like user but also displays some payload-related information
  - PROTO: focuses on the protocol's framing
  - STATE: also indicate state internal transitions or non-transitions
  - DEVELOPER: adds extra info about branches taken in the code (break
    points, return points)
include/proto/trace.h
src/trace.c