incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1490205 - /sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java
Date Thu, 06 Jun 2013 09:03:47 GMT
Author: bdelacretaz
Date: Thu Jun  6 09:03:47 2013
New Revision: 1490205

URL: http://svn.apache.org/r1490205
Log:
SLING-2822 - debug log bean value

Modified:
    sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java

Modified: sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java?rev=1490205&r1=1490204&r2=1490205&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java
(original)
+++ sling/trunk/contrib/extensions/healthcheck/hc-rules/src/main/java/org/apache/sling/hc/rules/jmx/JmxBeansRuleBuilder.java
Thu Jun  6 09:03:47 2013
@@ -58,7 +58,9 @@ public class JmxBeansRuleBuilder impleme
                 if(jmxServer.queryNames(objectName, null).size() == 0) {
                     logger.error("MBean not found: {}", objectName);
                 }
-                return jmxServer.getAttribute(objectName, attributeName);
+                final Object value = jmxServer.getAttribute(objectName, attributeName);
+                logger.debug("{} {} returns {}", new Object[] { beanName, attributeName,
value });
+                return value;
             } catch(Exception e) {
                 logger.error("MBean exception", e);
             }



Mime
View raw message