]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: log: Remove log-error-via-logformat option
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 31 Aug 2021 10:08:51 +0000 (12:08 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 31 Aug 2021 10:13:06 +0000 (12:13 +0200)
This option will be replaced by a "error-log-format" that enables to use
a dedicated log-format for connection error messages instead of the
regular log-format (in which most of the fields would be invalid in such
a case).
The "log-error-via-logformat" mechanism will then be replaced by a test
on the presence of such an error log format or not. If a format is
defined, it is used for connection error messages, otherwise the legacy
error log format is used.

doc/configuration.txt
src/proxy.c

index 0760ac842565db85cb5e4604aaf8d4c98f722a20..428339ac162fab81df12fda20e5ad2965b2a0862 100644 (file)
@@ -9041,23 +9041,6 @@ no option logasap
              logging.
 
 
-option log-error-via-logformat
-no option log-error-via-logformat
-  Enable or disable dedicated connection error logging.
-  May be used in sections :   defaults | frontend | listen | backend
-                                 yes   |    yes   |   yes  |   no
-  Arguments : none
-
-  In case of connection error, if the option is disabled, a log line following
-  the format described in section 8.2.6, the legacy format, will be emitted.
-  Otherwise, a log line following the configured log-format for the listener
-  will be emitted. The error code and the corresponding message found in the
-  error log can be added to a log-format thanks to the "fc_conn_err" and
-  "fc_conn_err_str" sample fetches.
-
-  See also : "option httpslog" and section 8 about logging.
-
-
 option mysql-check [ user <username> [ { post-41 | pre-41 } ] ]
   Use MySQL health checks for server testing
   May be used in sections :   defaults | frontend | listen | backend
index 2642b44a81e453c181f81bd19e7d3af197d09d53..16da542e36ceb5e5c1bb20a4db0492a32e5724b6 100644 (file)
@@ -72,7 +72,6 @@ const struct cfg_opt cfg_opts[] =
        { "http-ignore-probes", PR_O_IGNORE_PRB, PR_CAP_FE, 0, PR_MODE_HTTP },
        { "prefer-last-server", PR_O_PREF_LAST,  PR_CAP_BE, 0, PR_MODE_HTTP },
        { "logasap",      PR_O_LOGASAP,    PR_CAP_FE, 0, 0 },
-       { "log-error-via-logformat", PR_O_ERR_LOGFMT, PR_CAP_FE, 0, 0 },
        { "nolinger",     PR_O_TCP_NOLING, PR_CAP_FE | PR_CAP_BE, 0, 0 },
        { "persist",      PR_O_PERSIST,    PR_CAP_BE, 0, 0 },
        { "srvtcpka",     PR_O_TCP_SRV_KA, PR_CAP_BE, 0, 0 },