jbe/bsw@0: --[[-- jbe/bsw@0: trace.execution_return{ jbe/bsw@0: status = status -- optional status jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: This function is called automatically when returning from a view, action, configuration or filter for logging purposes. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function trace.execution_return(args) jbe@41: if not trace._disabled then jbe@41: local status jbe@41: if args then jbe@41: status = args.status jbe@41: end jbe@41: if status and type(status) ~= "string" then jbe@41: error("Status passed to trace.execution_return{...} is not a string.") jbe@41: end jbe@41: local closed_section = trace._close_section() jbe@41: closed_section.status = status jbe/bsw@0: end jbe/bsw@0: end