DEBUG: cli: make it possible for "debug dev loop" to trigger warnings
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 10:47:55 +0000 (11:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 18:04:38 +0000 (19:04 +0100)
commit650f633d441e47d5b268ddbc9edb18ce33da52b6
tree8e9bf11ebd0d8abfc3c186ac997ab59fd8c76fe8
parenta44922fb10e73758c5cc08142a2fba31e86cee83
DEBUG: cli: make it possible for "debug dev loop" to trigger warnings

A new argument "warn" allows to force the emission of a warning while
stuck in the loop by making the internal state inconsistent.

(cherry picked from commit 7337c422247b7af342048cfd48ac0aa2a4b7335e)
[wt: backported only to help testing the watchdog backports]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/debug.c