BUG/MINOR: hlua: don't call ha_alert() in hlua_event_subscribe()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 4 Mar 2024 15:31:23 +0000 (16:31 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 4 Mar 2024 15:48:42 +0000 (16:48 +0100)
commite1b003165074e9b280e6cc703512e0ff15998a68
treeb9f2c9c8a4cffc1f57ec180d41a4c29d4d0136e1
parent8670db7a898308455bf02315710c1204d39e4664
BUG/MINOR: hlua: don't call ha_alert() in hlua_event_subscribe()

hlua_event_subscribe() is meant to be called from a protected lua env
during init and/or runtime. As such, only hlua_event_sub() makes uses
of it: when an error happens hlua_event_sub() will already raise a Lua
exception. Thus it's not relevant to use ha_alert() there as it could
generate log pollution (error is relevant from Lua script point of view,
not from haproxy one).

This could be backported in 2.8.
src/hlua.c