webmcp
annotate framework/env/trace/debug_trace.lua @ 562:328f120924a2
Removed if-clause when initializing file descriptor set to avoid compiler warning for mondelefant_conn_try_wait
author | jbe |
---|---|
date | Fri Feb 05 15:51:39 2021 +0100 (2021-02-05) |
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 |