aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-16 04:19:47 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-16 04:19:47 +0000
commit71ae546e33b230992fbcb8cab754a01ea4b151a3 (patch)
tree9dc8e91c2a02e154b10c3ddd42949cd2e8a7aba4 /plugins
parentb1f16033b0399c3c85ff4559f839800bf7a463b6 (diff)
downloadprosody-71ae546e33b230992fbcb8cab754a01ea4b151a3.tar.gz
prosody-71ae546e33b230992fbcb8cab754a01ea4b151a3.zip
Fix invalid loglevels in mod_saslauth
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index df326f70..81ba24cc 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -40,13 +40,13 @@ local new_sasl = require "util.sasl".new;
local function build_reply(status, ret, err_msg)
local reply = st.stanza(status, {xmlns = xmlns_sasl});
if status == "challenge" then
- log("challenge", ret or "");
+ log("debug", ret or "");
reply:text(base64.encode(ret or ""));
elseif status == "failure" then
reply:tag(ret):up();
if err_msg then reply:tag("text"):text(err_msg); end
elseif status == "success" then
- log("success", ret or "");
+ log("debug", ret or "");
reply:text(base64.encode(ret or ""));
else
error("Unknown sasl status: "..status);
@@ -89,7 +89,7 @@ local function sasl_handler(session, stanza)
local text = stanza[1];
if text then
text = base64.decode(text);
- log("recieved", text);
+ log("debug", text);
if not text then
session.sasl_handler = nil;
session.send(build_reply("failure", "incorrect-encoding"));