]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: Add option to disable legacy error log
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 29 Jul 2021 07:45:53 +0000 (09:45 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:40:45 +0000 (15:40 +0200)
commit4a6328f0666d6ab0739a819867f41896fdfb28cc
treeedf3cff974286b5aa02d3edacbcb7cafc53b1d58
parent98b930d04329ccedbd85b1862f24e52933ba45e5
MEDIUM: connection: Add option to disable legacy error log

In case of connection failure, a dedicated error message is output,
following the format described in section "Error log format" of the
documentation. These messages cannot be configured through a log-format
option.
This patch adds a new option, "dontloglegacyconnerr", that disables
those error logs when set, and "replaces" them by a regular log line
that follows the configured log-format (thanks to a call to sess_log in
session_kill_embryonic).
The new fc_conn_err sample fetch allows to add the legacy error log
information into a regular log format.
This new option is unset by default so the logging logic will remain the
same until this new option is used.
doc/configuration.txt
include/haproxy/proxy-t.h
src/proxy.c
src/session.c