aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-10-16 05:16:45 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-10-16 05:16:45 +0500
commit159b5aed6f5fb310720360c4be7b1e4d8da3b665 (patch)
tree9dd63fad33fc0af13a4633a7e120a14688c55ef2
parent2e66b95ef050df22e0e8db753a0893f80637ae86 (diff)
downloadprosody-159b5aed6f5fb310720360c4be7b1e4d8da3b665.tar.gz
prosody-159b5aed6f5fb310720360c4be7b1e4d8da3b665.zip
mod_saslauth: Improved logging a bit.
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 7fb22b3e..abbf2ed4 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -142,7 +142,6 @@ module:hook("stream-features", function(event)
end);
module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
- log("debug", "Client requesting a resource bind");
local origin, stanza = event.origin, event.stanza;
local resource;
if stanza.attr.type == "set" then
@@ -155,14 +154,15 @@ module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
origin.send(st.reply(stanza)
:tag("bind", { xmlns = xmlns_bind })
:tag("jid"):text(origin.full_jid));
+ origin.log("debug", "Resource bound: %s", origin.full_jid);
else
origin.send(st.error_reply(stanza, err_type, err, err_msg));
+ origin.log("debug", "Resource bind failed: %s", err_msg or err);
end
return true;
end);
module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event)
- log("debug", "Client requesting a session");
event.origin.send(st.reply(event.stanza));
return true;
end);