Przeglądaj źródła

ZOOKEEPER-2040: Server to log underlying cause of SASL connection problems. (Steve Loughran via cnauroth)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1702378 13f79535-47bb-0310-9956-ffa450edef68
Chris Nauroth 10 lat temu
rodzic
commit
c506b39fde

+ 3 - 0
CHANGES.txt

@@ -256,6 +256,9 @@ IMPROVEMENTS:
   ZOOKEEPER-2270: Allow MBeanRegistry to be overridden for better unit tests
   (Jordan Zimmerman via rgs)
 
+  ZOOKEEPER-2040: Server to log underlying cause of SASL connection problems.
+  (Steve Loughran via cnauroth)
+
 Release 3.5.0 - 8/4/2014
 
 NEW FEATURES:

+ 1 - 1
src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java

@@ -1077,7 +1077,7 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
                 }
             }
             catch (SaslException e) {
-                LOG.warn("Client failed to SASL authenticate: " + e);
+                LOG.warn("Client failed to SASL authenticate: " + e, e);
                 if ((System.getProperty("zookeeper.allowSaslFailedClients") != null)
                   &&
                   (System.getProperty("zookeeper.allowSaslFailedClients").equals("true"))) {