mod_groups: Remove potentially verbose per-contact logging (thanks Flo)

This commit is contained in:
Matthew Wild 2010-05-20 09:40:33 +01:00
parent 8aa6c5fbd3
commit 5c7c2e522d

View file

@ -18,7 +18,7 @@ local jid_bare, jid_prep = jid.bare, jid.prep;
local module_host = module:get_host(); local module_host = module:get_host();
function inject_roster_contacts(username, host, roster) function inject_roster_contacts(username, host, roster)
module:log("warn", "Injecting group members to roster"); --module:log("debug", "Injecting group members to roster");
local bare_jid = username.."@"..host; local bare_jid = username.."@"..host;
if not members[bare_jid] and not members[false] then return; end -- Not a member of any groups if not members[bare_jid] and not members[false] then return; end -- Not a member of any groups
@ -41,7 +41,7 @@ function inject_roster_contacts(username, host, roster)
-- Find groups this JID is a member of -- Find groups this JID is a member of
if members[bare_jid] then if members[bare_jid] then
for _, group_name in ipairs(members[bare_jid]) do for _, group_name in ipairs(members[bare_jid]) do
module:log("debug", "Importing group %s", group_name); --module:log("debug", "Importing group %s", group_name);
import_jids_to_roster(group_name); import_jids_to_roster(group_name);
end end
end end
@ -49,7 +49,7 @@ function inject_roster_contacts(username, host, roster)
-- Import public groups -- Import public groups
if members[false] then if members[false] then
for _, group_name in ipairs(members[false]) do for _, group_name in ipairs(members[false]) do
module:log("debug", "Importing group %s", group_name); --module:log("debug", "Importing group %s", group_name);
import_jids_to_roster(group_name); import_jids_to_roster(group_name);
end end
end end