aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_privacy.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-29 13:02:06 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-29 13:02:06 +0000
commit76550b9ad1f186f2411d6b03e095792750f97a53 (patch)
tree8c8fd33d46ba86dd13009db370249809c2024130 /plugins/mod_privacy.lua
parent3dadf10b2e7c2b5bc720265d2364cb5b92a2a669 (diff)
downloadprosody-76550b9ad1f186f2411d6b03e095792750f97a53.tar.gz
prosody-76550b9ad1f186f2411d6b03e095792750f97a53.zip
mod_privacy: A handful of logging fixes
Diffstat (limited to 'plugins/mod_privacy.lua')
-rw-r--r--plugins/mod_privacy.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua
index b771a295..ab1eb870 100644
--- a/plugins/mod_privacy.lua
+++ b/plugins/mod_privacy.lua
@@ -86,7 +86,7 @@ function sendNeededUnavailablePersences(origin, listnameOrItem) -- TODO implemen
end
end
elseif type(listnameOrItem) == "table" then
- module:log("debug", "got an item, check wether to send unavailable presence stanza or not");
+ module:log("debug", "got an item, check whether to send unavailable presence stanza or not");
local item = listnameOrItem;
if item["presence-out"] == true then
@@ -391,7 +391,7 @@ function checkIfNeedToBeBlocked(e, session)
return; -- Nothing to block, default is Allow all
end
if from_user and to_user then
- module:log("debug", "Never block communications from one of a user's resources to another.");
+ module:log("debug", "Not blocking communications between user's resources");
return; -- from one of a user's resource to another => HANDS OFF!
end
@@ -404,12 +404,12 @@ function checkIfNeedToBeBlocked(e, session)
end
idx = findNamedList(privacy_lists, listname);
if idx == nil then
- module:log("error", "given privacy listname not found. name: %s", listname);
+ module:log("debug", "given privacy listname not found. name: %s", listname);
return;
end
list = privacy_lists.lists[idx];
if list == nil then
- module:log("info", "privacy list index wrong. index: %d", idx);
+ module:log("debug", "privacy list index wrong. index: %d", idx);
return;
end
for _,item in ipairs(list.items) do
@@ -464,7 +464,7 @@ function checkIfNeedToBeBlocked(e, session)
end
if apply then
if block then
- module:log("info", "stanza blocked: %s, to: %s, from: %s", tostring(stanza.name), tostring(to), tostring(from));
+ module:log("debug", "stanza blocked: %s, to: %s, from: %s", tostring(stanza.name), tostring(to), tostring(from));
if stanza.name == "message" then
origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
elseif stanza.name == "iq" and (stanza.attr.type == "get" or stanza.attr.type == "set") then
@@ -472,7 +472,7 @@ function checkIfNeedToBeBlocked(e, session)
end
return true; -- stanza blocked !
else
- module:log("info", "stanza explicit allowed!")
+ module:log("debug", "stanza explicitly allowed!")
return;
end
end