Skip to content

Commit

Permalink
Merge branch '1.1.x' into 1.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Sep 4, 2019
2 parents 82ed106 + 1da3e6b commit 580b14a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import io.micrometer.core.lang.NonNullApi;
import io.micrometer.core.lang.NonNullFields;
import io.micrometer.core.lang.Nullable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.management.ListenerNotFoundException;
import javax.management.NotificationEmitter;
Expand Down Expand Up @@ -54,8 +52,6 @@
@NonNullFields
public class JvmGcMetrics implements MeterBinder, AutoCloseable {

private static final Logger logger = LoggerFactory.getLogger(JvmGcMetrics.class);

private final boolean managementExtensionsPresent = isManagementExtensionsPresent();

private final Iterable<Tag> tags;
Expand Down Expand Up @@ -199,8 +195,7 @@ private static boolean isManagementExtensionsPresent() {
return true;
} catch (Throwable e) {
// We are operating in a JVM without access to this level of detail
logger.warn("GC notifications will not be available because " +
"com.sun.management.GarbageCollectionNotificationInfo is not present");
// TODO log a message about the unavailable class; see gh-1572
return false;
}
}
Expand Down

0 comments on commit 580b14a

Please sign in to comment.