diff options
author | Eric Covener <covener@apache.org> | 2013-09-02 01:21:39 +0000 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2013-09-02 01:21:39 +0000 |
commit | 20996af3eef5254c7cae48330650816e9c0aca42 (patch) | |
tree | 15cb3c96bd78c206d2ed0f96629aa8be0fe0d407 /modules/lua/mod_lua.c | |
parent | d9ff9133632dd12b658a26ab877099a2537a1487 (diff) | |
download | httpd-20996af3eef5254c7cae48330650816e9c0aca42.tar.gz |
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
Diffstat (limited to 'modules/lua/mod_lua.c')
-rw-r--r-- | modules/lua/mod_lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 79a9456815..4d02a91a3d 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -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); |