log.lua

Mon, 07 Sep 2020 09:15:21 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 07 Sep 2020 09:15:21 +0300
changeset 39
5fc5f93a8cad
parent 7
038275cd92ed
permissions
-rw-r--r--

less verbosity


--@module log

local log={}

local config=require("config")

function log.log(str)
    if config.debug then
        io.stderr:write(str)
    end
end

return log

mercurial