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>
Thu, 8 Oct 2020 08:56:09 +0000 (10:56 +0200)
commita703805a0ff3e31d64885e66c1f85de086c591ee
treedc50dcb5c878a3b7e7d1c60d9fc6dda005ee4a22
parent63c7b2c27cad55e86c20e9e1cdcd0464dcf1e81c
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.

(cherry picked from commit f98d821b942b4f392e77431c320aa895ca97369e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 604a647d4d7ff310d0ed1e9f98531b6a0c9e332e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c