]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log/sink: make logsrv postparsing more generic
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 17 Aug 2023 15:38:30 +0000 (17:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 14:06:39 +0000 (16:06 +0200)
commitd9b81e5b49b4e0e7db8976997b39f568c189ae95
tree9f37a2b6aedc129224956d5c78f2f99d1ee99c14
parent969e212c663dbbfae4b432413f8363072c0834a5
MEDIUM: log/sink: make logsrv postparsing more generic

We previously had postparsing logic but only for logsrv sinks, but now we
need to make this operation on logsrv directly instead of sinks to prepare
for additional postparsing logic that is not sink-specific.

To do this, we migrated post_sink_resolve() and sink_postresolve_logsrvs()
to their postresolve_logsrvs() and postresolve_logsrv_list() equivalents.

Then, we split postresolve_logsrv_list() so that the sink-only logic stays
in sink.c (sink_resolve_logsrv_buffer() function), and the "generic"
target part stays in log.c as resolve_logsrv().

Error messages formatting was preserved as far as possible but some slight
variations are to be expected.
As for the functional aspect, no change should be expected.
include/haproxy/log.h
include/haproxy/sink.h
src/log.c
src/sink.c