1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

trace4 logging of return codes from LuaHook* functions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1519329 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2013-09-02 01:21:39 +00:00
parent d9ff913363
commit 20996af3ee

View File

@@ -661,6 +661,8 @@ static int lua_request_rec_hook_harness(request_rec *r, const char *name, int ap
rc = DECLINED;
if (lua_isnumber(L, -1)) {
rc = lua_tointeger(L, -1);
ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "Lua hook %s:%s for phase %s returned %d",
hook_spec->file_name, hook_spec->function_name, name, rc);
}
if (rc != DECLINED) {
ap_lua_release_state(L, spec, r);