Skip to content

Commit 966aee6

Browse files
committed
enhance comments & test cmd log msg
1 parent 586f780 commit 966aee6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/TargetSystemIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void endToEndTest() {
112112
scraper =
113113
createScraperContainer(otlpEndpoint, getTargetSystem(), null, "target_system", JMX_PORT);
114114
logger.info(
115-
"starting scraper with JVM arguments : {}", String.join(" ", scraper.getCommandParts()));
115+
"starting scraper with command: {}", String.join(" ", scraper.getCommandParts()));
116116

117117
scraper.start();
118118

jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/client/JmxRemoteClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public JMXConnector connect() throws IOException {
8686

8787
try {
8888
// Not all supported versions of Java contain this Provider
89+
// Also it might not be accessible due to java.security.sasl module not accessible
8990
Class<?> klass = Class.forName("com.sun.security.sasl.Provider");
9091
Provider provider = (Provider) klass.getDeclaredConstructor().newInstance();
9192
Security.addProvider(provider);

0 commit comments

Comments
 (0)