MINOR: trace: Add a set of macros to trace events if HA is compiled with debug
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Nov 2019 10:40:10 +0000 (11:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2019 09:14:32 +0000 (10:14 +0100)
commitdb703b19181a093e54e8619ae7c4aeac07dd8daf
treed156fdc48d2adbc563f1e54755ee4d85a64cdced
parenta3ed271ed453255aed13a57da10c567f02760fe5
MINOR: trace: Add a set of macros to trace events if HA is compiled with debug

The macros DBG_TRACE_*() can be used instead of existing trace macros to emit
trace messages in debug mode only, ie, when HAProxy is compiled with DEBUG_FULL
or DEBUG_DEV. Otherwise, these macros do nothing. So it is possible to add
traces for development purpose without impacting performance of production
instances.
include/proto/trace.h