Add error log when new jetty client
@@ -256,7 +256,7 @@ class AdminProxyHandler extends ProxyServlet {
if (config.isTlsEnabledWithBroker()) {
try {
- X509Certificate trustCertificates[] = SecurityUtility
+ X509Certificate[] trustCertificates = SecurityUtility
.loadCertificatesFromPemFile(config.getBrokerClientTrustCertsFilePath());
SSLContext sslCtx;
@@ -281,6 +281,7 @@ class AdminProxyHandler extends ProxyServlet {
return new JettyHttpClient(contextFactory);
} catch (Exception e) {
+ LOG.error("new jetty http client exception ", e);
try {
auth.close();
} catch (IOException ioe) {
@@ -324,7 +325,7 @@ class AdminProxyHandler extends ProxyServlet {
if (LOG.isDebugEnabled()) {
LOG.debug("[{}:{}] Selected active broker is {}", request.getRemoteAddr(), request.getRemotePort(),
- url.toString());
+ url);
}
} catch (Exception e) {
LOG.warn("[{}:{}] Failed to get next active broker {}", request.getRemoteAddr(),
