From: Eric Covener Date: Mon, 2 Sep 2013 01:21:39 +0000 (+0000) Subject: trace4 logging of return codes from LuaHook* functions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0694505baea996d52890fb98a0bca84a28ae809;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 79a94568155..4d02a91a3d2 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);