MINOR: log: Rely on client addresses at the appropriate level to log messages
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Oct 2021 15:43:22 +0000 (17:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Oct 2021 09:34:21 +0000 (11:34 +0200)
commitf9c4d8d5bec487baf67ce52e2369f588872e89d6
treebb8f8cb7b66221bda56aad7720bfa5713fb35a5b
parentc9c8e1cc015732c4536947d53a7d2c9542d12b4d
MINOR: log: Rely on client addresses at the appropriate level to log messages

When a log message is emitted, if the stream exits, we use the frontend
stream-interface to retrieve the client source and destination
addresses. Otherwise, the session is used. For now, stream-interface or
session addresses are never set. So, thanks to the fallback mechanism, no
changes are expected with this patch. But its purpose is to rely on
addresses at the appropriate level when set instead of those at the
connection level.
src/log.c