]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: show thread number and source name in the trace
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Aug 2019 08:08:58 +0000 (10:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Aug 2019 08:10:50 +0000 (10:10 +0200)
commita9f5b96e029b71459e866427a0aad1e4ded8e50a
tree1c542ff95fef35ffcb50c4fa7dea5ebb784b025a
parentb3f7a72c276a4b7e9b90f04d7b492c15a8f21a83
MINOR: trace: show thread number and source name in the trace

Traces were missing the thread number and the source name, which was
really annoying. Now the thread number is emitted on two digits inside
the square brackets, followed by the source name then the line location,
each delimited with a vertical bar, such as below :

  [00|h2|mux_h2.c:2651] Notifying stream about SID change : h2c=0x7f3284581ae0 st=3 h2s=0x7f3284297f00 id=523 st=4
  [00|h2|mux_h2.c:2708] receiving H2 HEADERS frame : h2c=0x7f3284581ae0 st=3 dsi=525 (st=0)
  [02|h2|mux_h2.c:2194] Received H2 request : h2c=0x7f328d3d1ae0 st=2 : [525] H2 REQ: GET / HTTP/2.0
  [02|h2|mux_h2.c:2561] Expecting H2 frame header : h2c=0x7f328d3d1ae0 st=2
src/trace.c