diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-29 05:53:11 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-29 05:53:11 +0500 |
commit | 34b736f5cf8a7c09f460c982dbf9332989da868e (patch) | |
tree | a5d68a9e7fc74ff0b57e6b197660e6ac29b2f74f /util | |
parent | 121e93a07ad29500c1b8e1c56efff7055cf324bc (diff) | |
download | prosody-34b736f5cf8a7c09f460c982dbf9332989da868e.tar.gz prosody-34b736f5cf8a7c09f460c982dbf9332989da868e.zip |
Fixed logging in datamanager
Diffstat (limited to 'util')
-rw-r--r-- | util/datamanager.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index f25fffb3..99eef9f3 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -3,7 +3,7 @@ local setmetatable, type = setmetatable, type; 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 @@ module "datamanager" ---- 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 }); |