Comparison

core/rostermanager.lua @ 263:75275b6b4e03

Update rostermanager to use new logger
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Nov 2008 17:37:45 +0000
parent 193:13ac34255c37
child 268:fd0607c8f179
comparison
equal deleted inserted replaced
262:8c73fb2ff4a2 263:75275b6b4e03
1 1
2 local mainlog = log; 2
3 local function log(type, message) 3 local log = require "util.logger".init("rostermanager");
4 mainlog(type, "rostermanager", message);
5 end
6 4
7 local setmetatable = setmetatable; 5 local setmetatable = setmetatable;
8 local format = string.format; 6 local format = string.format;
9 local loadfile, setfenv, pcall = loadfile, setfenv, pcall; 7 local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
10 local pairs, ipairs = pairs, ipairs; 8 local pairs, ipairs = pairs, ipairs;