]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: explicitly handle extra log origins as error when relevant
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 31 Jul 2024 12:10:52 +0000 (14:10 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Sep 2024 14:53:07 +0000 (16:53 +0200)
commitf8bb9d5c5746e9fec48ca5c60ec9ebbdf4ee16ba
treeb98789bd95820ac936fc38a827fe7a076161a9ef
parent3c15ee05e9371cec2d0c70754c92afd55ae43233
MINOR: log: explicitly handle extra log origins as error when relevant

Thanks to previous commit, we can know check for log_orig optional flags
in functions taking struct log_orig as parameter. Let's take this
opportunity to add the LOG_ORIG_FL_ERROR flag and check this flag at a
few places to handle the log message differently because if the flag is
set then the caller expects the log to be handled as an error explicitly.

e.g.: in _process_send_log_override(), if the flag is set, use the error
log format instead of the dedicated one.
include/haproxy/log-t.h
src/log.c