]> 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 08:11:45 +0000 (10:11 +0200)
commite7ded1f8698ab954656106baae9cc8da00567511
tree1462cd99393830d580946c8e0eb96e93bd77c19f
parent34e98ea70d09195e8e047b3ea22c23506598687d
[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.
src/cfgparse.c
src/log.c