Thrift-1652: TSaslTransport does not log the error when kerberos auth fails
authorJake Farrell <jfarrell@apache.org>
Sat, 14 Jul 2012 23:56:20 +0000 (23:56 +0000)
committerJake Farrell <jfarrell@apache.org>
Sat, 14 Jul 2012 23:56:20 +0000 (23:56 +0000)
Client: java
Patch: Rohini Palaniswamy

The actual kerberos authentication failure is not logged and it is very difficult to find the actual reason for the failure.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1361615 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/org/apache/thrift/transport/TSaslTransport.java

index 0c64850..b54746c 100644 (file)
@@ -293,6 +293,7 @@ abstract class TSaslTransport extends TTransport {
       }
     } catch (SaslException e) {
       try {
+        LOGGER.error("SASL negotiation failure", e);
         sendAndThrowMessage(NegotiationStatus.BAD, e.getMessage());
       } finally {
         underlyingTransport.close();