MEDIUM: log/sink: simplify log header handling
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 24 Aug 2023 18:46:12 +0000 (20:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Oct 2023 08:05:06 +0000 (10:05 +0200)
commit6dad0549a5261757efd34b002120afdcc55d2fa5
treefa7f2f7fc2a63ecf21a89d4197b34e2578347ea8
parentab914667da9f7f116bd2ee0de1ac9a6c4a33a5a4
MEDIUM: log/sink: simplify log header handling

Introduce log_header struct to easily pass log header data between
functions and use that to simplify the logic around log header
handling.

While at it, some outdated comments were updated as well.

No change in behavior should be expected.
include/haproxy/log-t.h
include/haproxy/log.h
include/haproxy/sink.h
src/log.c
src/sample.c
src/sink.c
src/trace.c