]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: fix broken '+bin' logformat node option
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 14 Jun 2024 16:01:45 +0000 (18:01 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 14 Jun 2024 16:25:21 +0000 (18:25 +0200)
commit0030f722a2fa574d1e7d90e6f242e4b6a5ace355
tree0e249ba32b9746b51b050c50f259b6c1c79b809c
parentdc1bca4e9f3dde1da2fcc57b2aaf7fc130fd1f87
BUG/MINOR: log: fix broken '+bin' logformat node option

In 12d08cf912 ("BUG/MEDIUM: log: don't ignore disabled node's options"),
while trying to restore historical node option inheritance behavior, I
broke the '+bin' logformat node option recently introduced in b7c3d8c87c
("MINOR: log: add +bin logformat node option").

Indeed, because of 12d08cf912, LOG_OPT_BIN is not set anymore on
individual nodes even if it was set globally, making the feature unusable.
('+bin' is also used for binary cbor encoding)

What I should have done instead is include LOG_OPT_BIN in the options
inherited from global ones. This is what's being done in this commit.
Misleading comment was adjusted.

It must be backported in 3.0 with 12d08cf912.
src/log.c