]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: implement a call to a decode function
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Aug 2019 14:28:07 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Aug 2019 18:21:00 +0000 (20:21 +0200)
commitbfd14fc6ebe30d6d2f4762089dafca9277603ffb
tree906b2a4c60ae7ff1192e0c50cb3a33fdff94ae76
parent5da408818b1a0c94350dca904b8a66f3888b8c7b
MINOR: trace: implement a call to a decode function

The trace() call will support an optional decoding callback and 4
arguments that this function is supposed to know how to use to provide
extra information. The output remains unchanged when the function is
NULL. Otherwise, the message is pre-filled into the thread-local
trace_buf, and the function is called with all arguments so that it
completes the buffer in a readable form depending on the expected
level of detail.
include/proto/trace.h
src/trace.c