aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-03 18:09:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-03 18:09:02 +0500
commitfc73419e7ff7542af2ee837ec2eff8e3fea6bbc0 (patch)
tree01b3d904ca4f7258ee3e001a86db9547f17589d7
parentbc5b27f0981edf60d864a54f83037925b43518a7 (diff)
downloadprosody-fc73419e7ff7542af2ee837ec2eff8e3fea6bbc0.tar.gz
prosody-fc73419e7ff7542af2ee837ec2eff8e3fea6bbc0.zip
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
-rw-r--r--util/sasl_cyrus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index b5f505eb..add7fe45 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -127,7 +127,7 @@ function method:process(message)
elseif (err == -13) then -- SASL_BADAUTH
return "failure", "not-authorized", cyrussasl.get_message( self.cyrus )
else
- log("debug", "Got SASL error condition %d", err)
+ log("debug", "Got SASL error condition %d: %s", err, cyrussasl.get_message( self.cyrus ))
return "failure", "undefined-condition", cyrussasl.get_message( self.cyrus )
end
end