webmcp

annotate framework/env/trace/debug.lua @ 266:98537ccd0800

Renamed local variable in mcp.lua to avoid shaddowing of global "request" variable
author jbe
date Fri Mar 20 13:41:28 2015 +0100 (2015-03-20)
parents 0bbfee4d4aed
children e00d11c12b68
rev   line source
jbe/bsw@0 1 --[[--
poelzi@36 2 trace.debug(...)
poelzi@38 3 ... -- messages to be inserted into the trace log
poelzi@36 4
jbe/bsw@0 5
jbe/bsw@0 6 This function can be used to include debug output in the trace log.
jbe/bsw@0 7
jbe/bsw@0 8 --]]--
jbe/bsw@0 9
poelzi@36 10 function trace.debug(...)
jbe@41 11 if not trace._disabled then
jbe@41 12 local message = ""
jbe@41 13 local arg = {...}
jbe@41 14 for i= 1,#arg,1 do
jbe@41 15 message = message..tostring(arg[i]).." "
jbe@41 16 end
jbe@41 17 trace._new_entry{ type = "debug", message = message }
poelzi@36 18 end
jbe/bsw@0 19 end

Impressum / About Us