prosody

changeset 3029
0c7beabfed5b
parent 2986
fff153f7f4de
parent 3024
9c74785c6351
child 3033
0194d7eab8a5
equal deleted inserted replaced
3022:948d511f479c 3029:0c7beabfed5b
141 name = debug.getupvalue(f, i); 141 name = debug.getupvalue(f, i);
142 until name == upvalue or name == nil; 142 until name == upvalue or name == nil;
143 if name then 143 if name then
144 debug.setupvalue(f, i, value); 144 debug.setupvalue(f, i, value);
145 end 145 end
146 end
147 function mt.__tostring(f)
148 local info = debug.getinfo(f);
149 return ("function(%s:%d)"):format(info.short_src:match("[^\\/]*$"), info.linedefined);
146 end 150 end
147 debug.setmetatable(function() end, mt); 151 debug.setmetatable(function() end, mt);
148 end 152 end
149 153
150 function init_global_state() 154 function init_global_state()
322 return username, host, datastore, data; 326 return username, host, datastore, data;
323 end); 327 end);
324 end 328 end
325 329
326 function prepare_to_start() 330 function prepare_to_start()
327 log("info", "Prosody is using the %s backend for connection handling", server.get_backend()); 331 log("debug", "Prosody is using the %s backend for connection handling", server.get_backend());
328 -- Signal to modules that we are ready to start 332 -- Signal to modules that we are ready to start
329 prosody.events.fire_event("server-starting"); 333 prosody.events.fire_event("server-starting");
330 334
331 -- start listening on sockets 335 -- start listening on sockets
332 if config.get("*", "core", "ports") then 336 if config.get("*", "core", "ports") then

mercurial