# HG changeset patch # User Daniel Poelzleithner # Date 1286995724 -7200 # Node ID 3480a11da8e86a9bfcc141d13b224ecbf458a34f # Parent fb7b7ac6d5602e8dd36f4364c96f644aa0d89ee9 fix doc and depricated api use diff -r fb7b7ac6d560 -r 3480a11da8e8 framework/env/trace/debug.lua --- a/framework/env/trace/debug.lua Sat Oct 09 01:35:40 2010 +0200 +++ b/framework/env/trace/debug.lua Wed Oct 13 20:48:44 2010 +0200 @@ -1,6 +1,6 @@ --[[-- trace.debug(...) - arg -- messages to be inserted into the trace log + ... -- messages to be inserted into the trace log This function can be used to include debug output in the trace log. @@ -8,8 +8,9 @@ --]]-- function trace.debug(...) - message = "" - for i= 1,arg.n,1 do + local message = "" + local arg = {...} + for i= 1,#arg,1 do message = message..tostring(arg[i]).." " end trace._new_entry{ type = "debug", message = message } diff -r fb7b7ac6d560 -r 3480a11da8e8 framework/env/trace/debug_table.lua --- a/framework/env/trace/debug_table.lua Sat Oct 09 01:35:40 2010 +0200 +++ b/framework/env/trace/debug_table.lua Wed Oct 13 20:48:44 2010 +0200 @@ -1,5 +1,5 @@ --[[-- -trace.debug( +trace.debug_table( message -- message to be inserted into the trace log )