Skip to content

Commit

Permalink
JMXMetricInsight should log nothing at INFO level (open-telemetry#7367)
Browse files Browse the repository at this point in the history
if not configured to collect any metrics
  • Loading branch information
PeterF778 committed Dec 9, 2022
1 parent 8903831 commit 5c9a9d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package io.opentelemetry.instrumentation.jmx.engine;

import static java.util.logging.Level.INFO;
import static java.util.logging.Level.FINE;

import io.opentelemetry.api.OpenTelemetry;
import java.util.logging.Logger;
Expand Down Expand Up @@ -36,7 +36,7 @@ private JmxMetricInsight(OpenTelemetry openTelemetry, long discoveryDelay) {
public void start(MetricConfiguration conf) {
if (conf.isEmpty()) {
logger.log(
INFO,
FINE,
"Empty JMX configuration, no metrics will be collected for InstrumentationScope "
+ INSTRUMENTATION_SCOPE);
} else {
Expand Down

0 comments on commit 5c9a9d6

Please sign in to comment.