]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: move the log code to sess_build_logline() to add extra arguments
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 12:58:15 +0000 (14:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 18:01:23 +0000 (20:01 +0200)
commit43c538eab66fed681ee719ccc76caf4c99cb066c
treeca7c117441c5d141a1359230b69d5a3fb2ca1124
parentec3750c59068f1ac2c226c33b7e424f1151d49d3
MINOR: log: move the log code to sess_build_logline() to add extra arguments

The current build_logline() can only be used with valid streams, which
means it is not suitable for use from muxes. We start by moving it into
another more generic function which takes the session as an argument,
to avoid complexifying all the internal API for jsut a few use cases.
This new function is not supposed to be called directly from outside so
we'll be able to instrument it to support several calling conventions.

For now the behaviour and conditions remain unchanged.
include/proto/log.h
src/log.c