]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] log: option tcplog would log to global if no logger was defined
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Aug 2009 08:11:45 +0000 (10:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Aug 2009 14:16:38 +0000 (16:16 +0200)
commit3456c4491bd13d2e3a44a3157579bc032fce47dd
tree8202d93fcec22f46c7a2aa01fc7b8657a51b23ad
parent734c3d317735e1bbd4e83d41ae1fefc80b34d445
[BUG] log: option tcplog would log to global if no logger was defined

Romuald du Song reported a strange bug causing "option tcplog" to
unexpectedly use global log parameters if no log server was declared.

Eventhough it can be useful in some circumstances, it only hides
configuration bugs and can even cause traffic logs to be sent to
the wrong logger, since global settings are just for the process.

This has been fixed and a warning has been added for configurations
where tcplog or httplog are set without any logger. This fix must
be backported to 1.3.20, but not to 1.3.15.X in order not to risk
any regression on old configurations.
(cherry picked from commit e7ded1f8698ab954656106baae9cc8da00567511)
src/cfgparse.c
src/log.c