local function write_log(content)local file_name = "/tmp/debug.txt"content = content or "content as nil"local timestemp = os.date("%Y-%m-%d %H:%M:%S")content = timestemp .. " : " .. contentlocal file = io.open(file_name, "a")if not file thenreturn "can\'t open file \"" .. file_name .. "\""endfile:write(debug.traceback(content,2))file:write("\n")file:close()return nilend
