Software /
code /
prosody
Changeset
3157:174f3cfe86ff
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 18:09:02 +0500 |
parents | 3156:89b64966f511 |
children | 3179:99c5288a26e4 |
files | util/sasl_cyrus.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl_cyrus.lua Thu Jun 03 18:01:05 2010 +0500 +++ b/util/sasl_cyrus.lua Thu Jun 03 18:09:02 2010 +0500 @@ -127,7 +127,7 @@ 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