]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: postpone conversion for sample expressions in sess_build_logline()
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 25 Apr 2024 14:20:11 +0000 (16:20 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 16:39:31 +0000 (18:39 +0200)
commitfb8b47fed827375c57aa1d53c10e4e47f7ad8c40
tree8795b5da5d059f83eda4f9c5703637cf87af48d7
parent84963fb743b2433c781d7d33af9e6cfb194edbdf
MINOR: log: postpone conversion for sample expressions in sess_build_logline()

In sess_build_logline(), for sample expression nodes, instead of directly
calling sample_fetch_as_type(... SMP_T_STR), let's first process the
sample using sample_process(), and then proceed with the conversion to
str if required.

Doing so will allow us to implement type casting and preserving logic.
src/log.c