]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: trace: automatically start in waiting mode with "start <evt>"
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2024 09:45:54 +0000 (11:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Aug 2024 14:02:59 +0000 (16:02 +0200)
commit0406efe9ad129e91f8a6c93b780064b3c27ccaa0
tree41daaaabbd4fb6a8f01fed448e9156db1214be26
parentb5df6b5a31b86b4403f00b7e0230c97883eca0f3
BUG/MINOR: trace: automatically start in waiting mode with "start <evt>"

The doc clearly says that "start <evt>" should leave the trace in pause
mode until the indicated event appears. However it's not what's happening,
the state is not changed until one command uses "now", so it's typically
needed to configure the events with "start <evt>" then enable the waiting
mode using "pause now". This is counter-intuitive and does not match the
doc, so let's fix it so that "start <evt>" switches from stopped to waiting
as long as at least one event is enabled.

This can be backported to all versions.
src/trace.c