]> git.kaiwu.me - haproxy.git/commit
REGTESTS: log: test the log filtering options of a frontend
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:49:25 +0000 (20:49 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commit4e0fae6e3345428e489a75298cf97a869be5d2a1
treed9f083d8594fc152d3b3f11f588a3a68b1875bba
parentd8494dd21ebc1bd4c04b4add7f32ec674b6ecc1c
REGTESTS: log: test the log filtering options of a frontend

"option dontlognull", "option dontlog-normal" and "option logasap" had
no coverage, and "option log-separate-errors" was only used as a side
setting of an SSL test.

Each option gets its own frontend: a connection on which nothing is
sent must not be logged while the next real request is, a successful
request must not be logged while the one ending on a 503 is, the same
pair must both be logged but at different syslog levels, and the
message emitted early must carry the '+' prefix on the byte count and
on the total time.

Two syslog servers are needed since vtest only matches the messages
emitted at the level its server was declared with, which is precisely
what log-separate-errors changes.
reg-tests/log/log_filtering.vtc [new file with mode: 0644]