]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: only emit and count warnings when explicitly requested
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2026 15:01:13 +0000 (17:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit991887f1a32ff90a5c843f8bcfb22b0085564d93
tree45198b377b8196a351d5db3080819d607ea68606
parent8feda218d891a5358cec1273a2a821a0403d7011
MINOR: debug: only emit and count warnings when explicitly requested

Previously complain() would set TAINTED_WARN was set even for a
check_if() because there was no way to distinguish a warn from a check
and a warn was systematically accounted for when the type was not a
bug. Likewise, BUG_ON() would dump a trace whenever a non-fatal event
happened, which is not the goal either as it prevents from counting
events without logging them (e.g. COUNT_IF). Now that we have explicit
flags for each type, let's consider them when choosing what to emit.

Note that for now complain() will still log the "msg" line if used
without FATL nor WARN though.
include/haproxy/bug.h
src/debug.c