webmcp
annotate framework/env/trace/debug_trace.lua @ 57:6a830c1479b0
Removed doubled "end" leading to parsing error
author | bsw |
---|---|
date | Sun Dec 18 22:14:03 2011 +0100 (2011-12-18) |
parents | 0b7e87f2dc91 |
children |
rev | line source |
---|---|
poelzi@29 | 1 --[[-- |
poelzi@29 | 2 trace.debug_trace( |
poelzi@29 | 3 message -- optional message to add |
poelzi@29 | 4 ) |
poelzi@29 | 5 |
poelzi@29 | 6 This function includes a traceback into the debugging log |
poelzi@29 | 7 |
poelzi@29 | 8 --]]-- |
poelzi@29 | 9 |
poelzi@29 | 10 function trace.debug_trace(message) |
poelzi@29 | 11 trace._new_entry{ type = "traceback", message = tostring(debug.traceback(message or "", 2)) } |
poelzi@29 | 12 end |