comparison mod_debug_traceback/mod_debug_traceback.lua @ 4217:983565f42063

mod_debug_traceback: Fix to use the cached traceback
author Matthew Wild <mwild1@gmail.com>
date Fri, 16 Oct 2020 14:28:34 +0100
parents 5841d54cb6c6
children 02292b892fce
comparison
equal deleted inserted replaced
4216:35b678609b79 4217:983565f42063
38 if not f then 38 if not f then
39 module:log("error", "Unable to write traceback: %s", err); 39 module:log("error", "Unable to write traceback: %s", err);
40 return; 40 return;
41 end 41 end
42 f:write("-- Traceback generated at ", os.date("%b %d %H:%M:%S"), " --\n"); 42 f:write("-- Traceback generated at ", os.date("%b %d %H:%M:%S"), " --\n");
43 f:write(traceback(), "\n"); 43 f:write(tb, "\n");
44 f:write("-- End of traceback --\n"); 44 f:write("-- End of traceback --\n");
45 f:close(); 45 f:close();
46 count = count + 1; 46 count = count + 1;
47 end 47 end
48 48