MINOR: log: Save alerts and warnings emitted during HAProxy startup
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Oct 2017 09:44:05 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 10:36:13 +0000 (11:36 +0100)
commitd46963865e9dda276b63bd841912e1a7078b1845
treed70475297dea4a5bbf0a760ed10f334be31ec34f
parent93a518f02a8048fabd34c2f364e3ca9e42e4db06
MINOR: log: Save alerts and warnings emitted during HAProxy startup

Because we can't always display the standard error messages when HAProxy is
started, all alerts and warnings emitted during the startup will now be saved in
a buffer. It can also be handy to store these messages just in case you
missed something during the startup

To implement this feature, Alert and Warning functions now relies on
display_message. The difference is just on conditions to call this function and
it remains unchanged. In display_message, if MODE_STARTING flag is set, we save
the message.
src/log.c