mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
BUG/MINOR: fix missing "log-format overrides previous 'option tcplog clf'..." detection
In commitfd48b28315
("MINOR: Implements new log format of option tcplog clf") "option tcplog clf" detection was correcly added for "option tcplog" and "option httplog", but "log-format" case was overlooked. Thus, this config would report erroneous warning message: defaults option tcplog clf log-format "ok" [WARNING] (727893) : config : parsing [test.conf:3]: 'log-format' overrides previous 'log-format' in 'defaults' section. No backport needed unlessfd48b28315
is.
This commit is contained in:
parent
499e057644
commit
607b9adc9b
@ -2699,6 +2699,8 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||||||
oldlogformat = "option httplog";
|
oldlogformat = "option httplog";
|
||||||
else if (curproxy->logformat.str == default_tcp_log_format)
|
else if (curproxy->logformat.str == default_tcp_log_format)
|
||||||
oldlogformat = "option tcplog";
|
oldlogformat = "option tcplog";
|
||||||
|
else if (curproxy->logformat.str == clf_tcp_log_format)
|
||||||
|
oldlogformat = "option tcplog clf";
|
||||||
else if (curproxy->logformat.str == clf_http_log_format)
|
else if (curproxy->logformat.str == clf_http_log_format)
|
||||||
oldlogformat = "option httplog clf";
|
oldlogformat = "option httplog clf";
|
||||||
else if (curproxy->logformat.str == default_https_log_format)
|
else if (curproxy->logformat.str == default_https_log_format)
|
||||||
|
Loading…
Reference in New Issue
Block a user