util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
authorWaqas Hussain <waqas20@gmail.com>
Thu, 03 Jun 2010 18:09:02 +0500
changeset 3195 f22248192c3e
parent 3194 b308450740b0
child 3196 d35b181a895a
child 3199 0badae62de28
util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code.
util/sasl_cyrus.lua
--- a/util/sasl_cyrus.lua	Thu Jun 03 17:47:51 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