]> git.kaiwu.me - haproxy.git/commit
MINOR: log: provide a way to override logger->profile from process_send_log_ctx
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Mar 2026 11:53:43 +0000 (12:53 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 20 Mar 2026 10:42:40 +0000 (11:42 +0100)
commit042b7ab763f21cde445137e8e54b1af8e0434925
tree0fb91f157d9c7f92a3a6b7465a86940ee10f3cf7
parent7466f64c5616c6332f5c12fd3fa79ee56af41562
MINOR: log: provide a way to override logger->profile from process_send_log_ctx

In process_send_log(), now also consider the ctx if ctx->profile != NULL

In that case, we do as if logger->prof was set, but we consider
ctx->profile in priority over the logger one. What this means is that
it will become possible to pass ctx.profile to a profile that will be
used no matter what to generate the log payload.

This is a pre-requisite to implement optional "profile" argument for
do-log action
src/log.c