HBASE-15854 Log the cause of SASL connection failures (Robert Yokota)

This commit is contained in:
Andrew Purtell 2016-05-26 14:16:20 -07:00
parent 02a641e2b1
commit 22aa501436

View File

@ -667,7 +667,7 @@ public class RpcClientImpl extends AbstractRpcClient {
String msg = "Couldn't setup connection for " +
UserGroupInformation.getLoginUser().getUserName() +
" to " + serverPrincipal;
LOG.warn(msg);
LOG.warn(msg, ex);
throw (IOException) new IOException(msg).initCause(ex);
}
} else {