webmcp
view 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 | 
 line source
     1 --[[--
     2 trace.debug(...)
     3   ...     -- messages to be inserted into the trace log
     6 This function can be used to include debug output in the trace log.
     8 --]]--
    10 function trace.debug(...)
    11   local message = ""
    12   local arg = {...}
    13   for i= 1,#arg,1 do
    14     message = message..tostring(arg[i]).." "
    15   end
    16   trace._new_entry{ type = "debug", message = message }
    17 end
