]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: "drop" support for log-profile steps
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 19 Aug 2024 16:06:19 +0000 (18:06 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 19 Aug 2024 16:53:01 +0000 (18:53 +0200)
commitf8299bc5eaefbf84b9b6b9851d98e33d2779fda4
treee176d26dfce5888b81651e1314014a753669ead4
parent41ca89bc6fe96a660fea992643dbc2c0844a609e
MINOR: log: "drop" support for log-profile steps

It is now possible to use "drop" keyword for "on" lines under a
log-profile section to specify that no log at all should be emitted for
the specified step (setting an empty format was not sufficient to do so
because only the log payload would be empty, not the log header, thus the
log would still be emitted).

It may be useful to selectively disable logging at specific steps for a
given log target (since the log profile may be set on log directives):

log-profile myprof
  on request format "blabla" sd "custom sd"
  on response drop

New testcase was added to reg-tests/log/log_profiles.vtc
doc/configuration.txt
include/haproxy/log-t.h
reg-tests/log/log_profiles.vtc
src/log.c