webmcp
changeset 38:3480a11da8e8
fix doc and depricated api use
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 13 20:48:44 2010 +0200 (2010-10-13) |
parents | fb7b7ac6d560 |
children | 56648d7917b1 |
files | framework/env/trace/debug.lua framework/env/trace/debug_table.lua |
line diff
1.1 --- a/framework/env/trace/debug.lua Sat Oct 09 01:35:40 2010 +0200 1.2 +++ b/framework/env/trace/debug.lua Wed Oct 13 20:48:44 2010 +0200 1.3 @@ -1,6 +1,6 @@ 1.4 --[[-- 1.5 trace.debug(...) 1.6 - arg -- messages to be inserted into the trace log 1.7 + ... -- messages to be inserted into the trace log 1.8 1.9 1.10 This function can be used to include debug output in the trace log. 1.11 @@ -8,8 +8,9 @@ 1.12 --]]-- 1.13 1.14 function trace.debug(...) 1.15 - message = "" 1.16 - for i= 1,arg.n,1 do 1.17 + local message = "" 1.18 + local arg = {...} 1.19 + for i= 1,#arg,1 do 1.20 message = message..tostring(arg[i]).." " 1.21 end 1.22 trace._new_entry{ type = "debug", message = message }