Преглед изворни кода

AMBARI-9923. RM exception in ambari-server.log when performing RU (aonishuk)

Andrew Onishuk пре 10 година
родитељ
комит
67c8448bcf

+ 5 - 1
ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java

@@ -346,7 +346,11 @@ public class MasterHostResolver {
 
       return jmxBeans.get("beans").get(0).get(attributeName);
     } catch (Exception e) {
-      LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname, e);
+      if (LOG.isDebugEnabled()) {
+        LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname, e);
+      } else {
+        LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname);
+      }
     }
 
     return null;