webmcp

annotate framework/env/trace/debug.lua @ 40:ed00b972f40e

Allow mondelefant.connect to be called with an explicit "conninfo" string
author jbe
date Sat Oct 16 17:49:11 2010 +0200 (2010-10-16)
parents 3480a11da8e8
children 0bbfee4d4aed
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(...)
poelzi@38 11 local message = ""
poelzi@38 12 local arg = {...}
poelzi@38 13 for i= 1,#arg,1 do
poelzi@37 14 message = message..tostring(arg[i]).." "
poelzi@36 15 end
poelzi@37 16 trace._new_entry{ type = "debug", message = message }
jbe/bsw@0 17 end

Impressum / About Us