]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: ensure -dt priority over traces config section
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 7 Jan 2025 16:57:54 +0000 (17:57 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 10 Jan 2025 13:50:59 +0000 (14:50 +0100)
commita50dd07c16fcca41e7491203aa2c9b20ed8f65b5
tree79175a3c49e28ce0e57eb310ddc03f4728b5bd3b
parentda9a7e0bd933a15dc55f7e8db59b1fe261eb78c6
MINOR: trace: ensure -dt priority over traces config section

Traces can be activated on startup either via -dt command line argument
or via the traces configuration section. This can caused confusion as it
may not be clear as trace source can be completed or overriden by one or
the other.

Fix the precedence to give the priority to the command line argument.
Now, each trace source configured via -dt is first resetted to a default
state before applying new settings. Then, it is impossible to change a
trace source via the configuration file if it was already targetted via
-dt argument.
include/haproxy/trace-t.h
src/trace.c