Skip to content

Commit

Permalink
Adds extra logging when dummyTrustManager fails to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed Apr 28, 2023
1 parent 1199ac8 commit 9a48737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/datadog/jmxfetch/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void checkServerTrusted(
sc.init(null, this.dummyTrustManager, new java.security.SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
} catch (Exception e) {
log.info("Exception during dummyTrustManager configuration: ", e);
log.debug("session token unavailable - not setting");
this.token = "";
}
Expand Down

0 comments on commit 9a48737

Please sign in to comment.