author | aidan@jmad.org |
Sun, 25 Feb 2024 18:20:04 -0800 | |
changeset 5880 | c5df6d53f17f |
parent 5855 | dde9d21a599f |
permissions | -rw-r--r-- |
module:set_global(); local traceback = require "util.debug".traceback; local signal = module:get_option_string(module.name, "SIGUSR1"); module:hook("signal/" .. signal, function() module:log("info", "Received %s, writing traceback", signal); local f = io.open(prosody.paths.data .. "/traceback.txt", "a+"); f:write(traceback(), "\n"); f:close(); end);