MINOR: hlua: Display debug messages on stderr only in debug mode
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2020 16:13:52 +0000 (18:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 09:11:36 +0000 (11:11 +0200)
commitf98d821b942b4f392e77431c320aa895ca97369e
tree3885fd8183c373cfa777c18f2cfbd8fffae6651b
parent98b81cb393971c216b86499b11b98781be28ad90
MINOR: hlua: Display debug messages on stderr only in debug mode

Debug Messages emitted in lua using core.Debug() or core.log() are now only
displayed on stderr if HAProxy is started in debug mode (-d parameter on the
command line). There is no change for other message levels.

This patch should fix the issue #879. It may be backported to all stable
versions.
src/hlua.c