]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: support a default callback for the source
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Aug 2019 05:03:58 +0000 (07:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Aug 2019 05:06:23 +0000 (07:06 +0200)
commit3da0026d25f54b8f5d7c6c8dd81b85dbd2a18168
tree3d5ae5fa2328c59336a26a33ccfe93900a9c68c7
parent8f24023ba0b3a193f6adf7f66c426613a2b7d0fb
MINOR: trace: support a default callback for the source

It becomes apparent that most traces will use a single trace pretty
print callback, so let's allow the trace source to declare a default
one so that it can be omitted from trace calls, and will be used if
no other one is specified.
include/types/trace.h
src/trace.c