cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7265] Symmetric INFO logging for registering and unregistering MBeans, patch from Tadayoshi Sato applied, This closes #241
Date Fri, 03 Mar 2017 14:59:40 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 9c53709b3 -> 21726730c


[CXF-7265] Symmetric INFO logging for registering and unregistering MBeans, patch from Tadayoshi
Sato applied, This closes #241


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/21726730
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/21726730
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/21726730

Branch: refs/heads/3.1.x-fixes
Commit: 21726730cea8efe7a2a9396cdae89eab7ca57de5
Parents: 9c53709
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Mar 3 14:57:22 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Mar 3 14:59:20 2017 +0000

----------------------------------------------------------------------
 .../management/jmx/InstrumentationManagerImpl.java   | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/21726730/rt/management/src/main/java/org/apache/cxf/management/jmx/InstrumentationManagerImpl.java
----------------------------------------------------------------------
diff --git a/rt/management/src/main/java/org/apache/cxf/management/jmx/InstrumentationManagerImpl.java
b/rt/management/src/main/java/org/apache/cxf/management/jmx/InstrumentationManagerImpl.java
index 6b3bacf..8e391b2 100644
--- a/rt/management/src/main/java/org/apache/cxf/management/jmx/InstrumentationManagerImpl.java
+++ b/rt/management/src/main/java/org/apache/cxf/management/jmx/InstrumentationManagerImpl.java
@@ -259,12 +259,15 @@ public class InstrumentationManagerImpl extends JMXConnectorPolicyType
         if (!isEnabled() || connectFailed) {
             return;           
         }
-        
-        busMBeans.remove(name);       
-        mbs.unregisterMBean(name);                    
-    }  
-    
-    public MBeanServer getMBeanServer() {        
+
+        if (LOG.isLoggable(Level.INFO)) {
+            LOG.info("unregistering MBean " + name);
+        }
+        busMBeans.remove(name);
+        mbs.unregisterMBean(name);
+    }
+
+    public MBeanServer getMBeanServer() {
         return mbs;
     }
 


Mime
View raw message