]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: Be able to disable logging from lua
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Feb 2024 14:41:17 +0000 (15:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Mar 2024 14:01:18 +0000 (15:01 +0100)
commit31ec9f18bb73737fc8e96f8781e1f251ddc44522
tree6646da97245160902ee0d365070814cf04fcf94c
parent75fb0afde4b77c947f2357af3c45bc3a7688b31c
MINOR: hlua: Be able to disable logging from lua

Add core.silent (-1) value to be able to disable logging via
TXN:set_loglevel() call. Otherwise, there is no way to do so and it may be
handy. This special value cannot be used with TXN:log() function.

This patch may be backported if necessary.
doc/lua-api/index.rst
src/hlua.c