webmcp

view framework/env/trace/execution_return.lua @ 382:810c020b0da4

Reverted changes to mondelefant_result_index and mondelefant_result_newindex C-functions (proxying of JSON document)
author jbe
date Mon Nov 16 18:31:49 2015 +0100 (2015-11-16)
parents 0bbfee4d4aed
children
line source
1 --[[--
2 trace.execution_return{
3 status = status -- optional status
4 }
6 This function is called automatically when returning from a view, action, configuration or filter for logging purposes.
8 --]]--
10 function trace.execution_return(args)
11 if not trace._disabled then
12 local status
13 if args then
14 status = args.status
15 end
16 if status and type(status) ~= "string" then
17 error("Status passed to trace.execution_return{...} is not a string.")
18 end
19 local closed_section = trace._close_section()
20 closed_section.status = status
21 end
22 end

Impressum / About Us