webmcp

view framework/env/trace/forward.lua @ 406:36f0d1d5ed7d

Further fixes in mondelefant.connect{...} (including proper handling of garbage collection in case of memory allocation errors); Code cleanup (use luaL_setmetatable, which is available since Lua 5.2)
author jbe
date Wed Jan 06 18:59:58 2016 +0100 (2016-01-06)
parents 0bbfee4d4aed
children
line source
1 --[[--
2 trace.forward{
3 module = module,
4 view = view
5 }
7 This function is called automatically by request.forward{...} for logging.
9 --]]--
11 function trace.forward(args)
12 if not trace._disabled then
13 local module = args.module
14 local view = args.view
15 if type(module) ~= "string" then
16 error("No module string passed to trace.forward{...}.")
17 end
18 if type(view) ~= "string" then
19 error("No view string passed to trace.forward{...}.")
20 end
21 trace._new_entry{ type = "forward", module = module, view = view }
22 end
23 end

Impressum / About Us