Skip to content

Commit

Permalink
Improves the error message printed when an exception occurs during be…
Browse files Browse the repository at this point in the history
…an/attribute retrieval (#486)
  • Loading branch information
scottopell authored Oct 12, 2023
1 parent 93e6f90 commit 195c704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/datadog/jmxfetch/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 195c704

Please sign in to comment.