Update rostermanager to use new logger
[prosody.git] / main.lua
index eac26fe5fd188a87e79784ed2f7d2c77176d1b31..a9154d439f5f302d5fe789dc6b263eb595f57d37 100644 (file)
--- a/main.lua
+++ b/main.lua
@@ -17,7 +17,7 @@ hosts = {};
 
 if config.hosts and #config.hosts > 0 then
        for _, host in pairs(config.hosts) do
-               hosts[host] = {type = "local", connected = true, sessions = {}, host = host};
+               hosts[host] = {type = "local", connected = true, sessions = {}, host = host, s2sout = {} };
        end
 else error("No hosts defined in the configuration file"); end
 
@@ -32,6 +32,9 @@ require "core.usermanager"
 require "core.sessionmanager"
 require "core.stanza_router"
 
+pcall(require, "remdebug.engine");
+if remdebug then remdebug.engine.start() end
+
 local start = require "net.connlisteners".start;
 require "util.stanza"
 require "util.jid"