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