webmcp

annotate framework/env/trace/debug_trace.lua @ 399:ef3201ed67f5

Bug in <db_handle>:try_query(...) fixed, which caused errors when result contains more than two columns (bug introduced by changeset fb98b17056e5)
author jbe
date Sun Jan 03 21:15:57 2016 +0100 (2016-01-03)
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

Impressum / About Us