Software /
code /
prosody
Diff
util/datamanager.lua @ 456:27cb85d4059e
Fixed logging in datamanager
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 05:53:11 +0500 |
parent | 452:613c5c6bdce4 |
child | 519:cccd610a0ef9 |
line wrap: on
line diff
--- a/util/datamanager.lua Fri Nov 28 18:06:29 2008 +0000 +++ b/util/datamanager.lua Sat Nov 29 05:53:11 2008 +0500 @@ -3,7 +3,7 @@ local pairs, ipairs = pairs, ipairs; local char = string.char; local loadfile, setfenv, pcall = loadfile, setfenv, pcall; -local log = log; +local log = require "util.logger".init("datamanager"); local io_open = io.open; local os_remove = os.remove; local tostring, tonumber = tostring, tonumber; @@ -25,8 +25,6 @@ ---- utils ----- local encode, decode; -local log = function (type, msg) return log(type, "datamanager", msg); end - do local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber("0x"..k)); return t[k]; end });