]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: explicit typecasting for logformat nodes
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 20 Feb 2024 09:29:49 +0000 (10:29 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 20 Feb 2024 14:49:54 +0000 (15:49 +0100)
commit1448478d62feed5a476705ab2892b5cb4622b68d
tree80877914dc59cb688a679edddd6694d19ebc49b8
parent0cfcc64b79a8a2497f49e2fc22c65387963db088
MINOR: log: explicit typecasting for logformat nodes

Add the ability to manually specify desired output type after a custom
field name for logformat nodes. Forcing the type can be useful to ensure
value is stored with the proper type representation. (i.e.: forcing
numerical to string to work around the limited resolution of JS number
types)

By default, type is set to SMP_T_SAME, which means the original type will
be preserved.

Currently supported types are: bool, str, sint
include/haproxy/log-t.h
src/log.c