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 .. " : " .. content
local file = io.open(file_name, "a")
if not file then
return "can\'t open file \"" .. file_name .. "\""
end
file:write(debug.traceback(content,2))
file:write("\n")
file:close()
return nil
end