# HG changeset patch # User Daniel Poelzleithner # Date 1286578646 -7200 # Node ID 5380305a3d517dba609d4f640e3786a20be08df6 # Parent 81dfcfd960ed3dd9d874d84cff54c9c3b120b6bb allow multiple arguments to trace.debug you can now write trace.debug("bla", 2, ...) diff -r 81dfcfd960ed -r 5380305a3d51 framework/env/trace/debug.lua --- a/framework/env/trace/debug.lua Thu Oct 07 00:28:47 2010 +0200 +++ b/framework/env/trace/debug.lua Sat Oct 09 00:57:26 2010 +0200 @@ -1,12 +1,14 @@ --[[-- -trace.debug( - message -- message to be inserted into the trace log -) +trace.debug(...) + arg -- messages to be inserted into the trace log + This function can be used to include debug output in the trace log. --]]-- -function trace.debug(message) - trace._new_entry{ type = "debug", message = tostring(message) } +function trace.debug(...) + for i,message in ipairs(arg) do + trace._new_entry{ type = "debug", message = tostring(message) } + end end