From 762a05ef6f097a2641dac3f89e0fa0d4caaf7f6c Mon Sep 17 00:00:00 2001 From: Scott Opell Date: Thu, 12 Oct 2023 17:04:54 +0000 Subject: [PATCH] Improves the error message printed when an exception occurs during bean/attribute retrieval --- src/main/java/org/datadog/jmxfetch/Instance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }