]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log/session: handle embryonic session log within sess_log()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 21 Feb 2024 16:26:52 +0000 (17:26 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 13 Jun 2024 13:43:09 +0000 (15:43 +0200)
commit0b7a5a64eb51ce4b22866064caa1c8e08ee17b8c
tree2c0631a304f39b764a24ee64dd69633190eac573
parent79a0a7b4d815360f6dac7ad0e0578f026ec3c338
MEDIUM: log/session: handle embryonic session log within sess_log()

Move the embryonic session logging logic down to sess_log() in preparation
for log-profiles because then log preferences will be set per logger and
not per proxy. Indeed, as each logger may come with its own log-profile
that possibly overrides proxy logformat preferences, the check will need
to be performed at a central place by lower sending functions.

To ensure the change doesn't break existing behavior, a dedicated
sess_log_embryonic() wrapper was added and is exclusively used by
session_kill_embryonic() to indicate that a special logging logic must
be performed under sess_log().

Also, thanks to this change, log-format-sd will now be taken into account
for legacy embryonic session logging.
include/haproxy/log.h
src/log.c
src/session.c