Permalink
Browse files

fix log message when we cannot retrieve attribute of an MBean

  • Loading branch information...
erebe committed Feb 4, 2019
1 parent 484e03d commit eae99b72b7dc1a8a9e6ae07adb667f8cafa29aef
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/criteo/nosql/cassandra/exporter/JmxScraper.java
@@ -253,7 +253,7 @@ private void updateMetric(MBeanServerConnection beanConn, MBeanInfo mBeanInfo, N
try {
value = beanConn.getAttribute(mBeanInfo.mBeanName, mBeanInfo.attribute.getName());
} catch (Exception e) {
logger.error("Cannot get value for {}{}", mBeanInfo, mBeanInfo.attribute.getName(), e);
logger.error("Cannot get value for {} {}", mBeanInfo.metricName, mBeanInfo.attribute.getName(), e);
}
if (value == null) {
return;

0 comments on commit eae99b7

Please sign in to comment.