diff --git a/src/main/java/org/datadog/jmxfetch/Instance.java b/src/main/java/org/datadog/jmxfetch/Instance.java index 770a8f863..54b1274f0 100644 --- a/src/main/java/org/datadog/jmxfetch/Instance.java +++ b/src/main/java/org/datadog/jmxfetch/Instance.java @@ -601,7 +601,7 @@ private void getMatchingAttributes() throws IOException { // we should not continue throw e; } catch (Exception e) { - log.warn("Cannot get bean attributes or class name: {}", e.getMessage()); + log.warn("Cannot get attributes or class name for bean {}: ", beanName, e); continue; }