]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: add a new hlua_show_current_location() function
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Jun 2022 15:39:33 +0000 (17:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 19 Jun 2022 15:58:32 +0000 (17:58 +0200)
commit0b7b639d7e80fc6ebec1b9a1406a9ec9dea919e9
tree776ec4e77e17d423f3f857d504b9e64025b46490
parent5c143404ead89123c5ad75b2b23391d837569a94
MINOR: hlua: add a new hlua_show_current_location() function

This function may be used to try to show where some Lua code is currently
being executed. It tries hard to detect the initialization phase, both for
the global and the per-thread states, and for runtime states. This intends
to be used by error handlers to provide the users with indications about
what Lua code was being executed when the error triggered.
include/haproxy/hlua.h
src/hlua.c