aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commitc49bc6b7102dc672237f8d4579f07bf57e6b9488 (patch)
treef28cd2109dfe8339d7b3f5328133d0e3385ebbeb /util
parent03ffab383cb0c807a1c6370f169b9bff887874ea (diff)
downloadprosody-c49bc6b7102dc672237f8d4579f07bf57e6b9488.tar.gz
prosody-c49bc6b7102dc672237f8d4579f07bf57e6b9488.zip
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
Diffstat (limited to 'util')
-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