Software /
code /
prosody-modules
Changeset
214:7487f8b47662
mod_s2s_reload_newcomponent: fix debug logs
author | Gaurav <gauravsri@gmail.com> |
---|---|
date | Fri, 16 Jul 2010 01:25:40 -0700 |
parents | 213:89051a926f74 |
children | 215:281db5eefcb4 |
files | mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua Fri Jul 16 01:19:49 2010 -0700 +++ b/mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua Fri Jul 16 01:25:40 2010 -0700 @@ -4,14 +4,11 @@ module.host = "*"; local function reload_components() - module:log ("debug", "reload_components"); - local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do - module:log ("debug", "found host %s", host); if (not hosts[host] and host ~= "*") then - module:log ("debug", "found new host %s", host); + module:log ("debug", "loading new component %s", host); modulemanager.load(host, configmanager.get(host, "core", "component_module")); end end;