From c49bc6b7102dc672237f8d4579f07bf57e6b9488 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 3 Jun 2010 18:09:02 +0500 Subject: util.sasl_cyrus: Log the textual representation of unknown Cyrus SASL errors, not just the error code. --- util/sasl_cyrus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/sasl_cyrus.lua') 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 -- cgit v1.2.3