webmcp
changeset 33:fc98e5c6bfab
add missing debug_table
trace.debug_table prints a table into the log.
trace.debug_table prints a table into the log.
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Tue Oct 05 05:19:47 2010 +0200 (2010-10-05) |
parents | e31af860e97c |
children | e19b0b5c46ba |
files | framework/env/trace/debug_table.lua |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/trace/debug_table.lua Tue Oct 05 05:19:47 2010 +0200 1.3 @@ -0,0 +1,12 @@ 1.4 +--[[-- 1.5 +trace.debug( 1.6 + message -- message to be inserted into the trace log 1.7 +) 1.8 + 1.9 +This function can be used to include debug output in the trace log. 1.10 + 1.11 +--]]-- 1.12 + 1.13 +function trace.debug_table(table) 1.14 + trace._new_entry{ type = "debug_table", message = table } 1.15 +end