]> git.kaiwu.me - haproxy.git/commit
DEBUG: stream: do not emit debug messages for internal proxies
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 13:56:14 +0000 (14:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 17:12:23 +0000 (18:12 +0100)
commitd6f50e678ff5e4781c47137399d11f58189cad33
tree72cf660a9af7de0d309cdb31075ac57c4dca8050
parent09e3f130578476760034e48d3d45c8b72b6776fb
DEBUG: stream: do not emit debug messages for internal proxies

The debug mode that is triggered via "haproxy -d" remains helpful in
unit tests during development, typically to see HTTP headers being
processed. However, for historic reasons it doesn't make any difference
between service connections and maintenance connections such as peers
or CLI, making it close to useless in environments involving one of
these.

This patch just eliminates logs for sessions coming from an internal
proxy, since this is not something users are expected to deal with nor
want to observe. Thus, it finally becomes possible to use "haproxy -d"
while a monitoring script polls the CLI or when peers are configured.
src/frontend.c
src/stream.c