webmcp
view framework/env/trace/enter_action.lua @ 92:774a891dc74f
Removed functions param.get_id_raw() and param.get_all_raw()
| author | jbe | 
|---|---|
| date | Wed Oct 10 17:57:40 2012 +0200 (2012-10-10) | 
| parents | 0bbfee4d4aed | 
| children | 
 line source
     1 --[[--
     2 trace.enter_action{
     3   module = module, 
     4   action = action
     5 }
     7 This function is used by execute.action and logs the call of an action.
     9 --]]--
    11 function trace.enter_action(args)
    12   if not trace._disabled then
    13     local module = args.module
    14     local action = args.action
    15     if type(module) ~= "string" then
    16       error("No module string passed to trace.enter_action{...}.")
    17     end
    18     if type(action) ~= "string" then
    19       error("No action string passed to trace.enter_action{...}.")
    20     end
    21     trace._open_section{ type = "action", module = module, action = action }
    22   end
    23 end
