]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: also report the trace level in the output
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Aug 2019 07:08:36 +0000 (09:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Aug 2019 15:11:25 +0000 (17:11 +0200)
commit052ad360cd9b34570c28cead539b74a1ebfef353
tree633c48af7290a21f6562dca38a49218fa6fede1c
parent09fb0df6fd666cbd4a490c84ab05fdcfda864449
MINOR: trace: also report the trace level in the output

It's very convenient to know the trace level in the output, at least to
grep/grep -v on it. The main usage is to filter/filter out the developer
traces at level DEVEL. For this we now add the numeric level (0 to 4) just
after the source name in the brackets. The output now looks like this :

  [00|h2|4|mux_h2.c:3174] h2_send(): entering : h2c=0x27d75a0 st=2
   -, -, | ------------,  --------,  -------------------> message
    |  | |             |          '-> function name
    |  | |             '-> source file location
    |  | '-> trace level (4=dev)
    |  '-> trace source
    '-> thread number
src/trace.c