Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 55cb81445 -> b733306d0


Make logging of missing blueprint less verbose


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

Branch: refs/heads/3.1.x-fixes
Commit: b84bd51dad062c605e8acdcdcfce610aaed7c3b3
Parents: 55cb814
Author: Christian Schneider <[email protected]>
Authored: Thu Jun 30 14:14:57 2016 +0200
Committer: Christian Schneider <[email protected]>
Committed: Mon Jul 4 17:08:26 2016 +0200

----------------------------------------------------------------------
 .../apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b84bd51d/core/src/main/java/org/apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java
 
b/core/src/main/java/org/apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java
index 463236f..14d4ced 100644
--- 
a/core/src/main/java/org/apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java
+++ 
b/core/src/main/java/org/apache/cxf/bus/blueprint/NamespaceHandlerRegisterer.java
@@ -44,11 +44,10 @@ public final class NamespaceHandlerRegisterer {
                 LOG.fine("Registered blueprint namespace handler for " + 
namespace);
             }
         } catch (Throwable e) {
-            String msg = "Aries Blueprint packages not available. So 
namespaces will not be registered";
-            if (LOG.isLoggable(Level.FINE)) {
-                LOG.log(Level.WARNING, msg, e);
+            if (e instanceof NoClassDefFoundError) {
+                LOG.log(Level.INFO, "Aries Blueprint packages not available. 
So namespaces will not be registered");
             } else {
-                LOG.log(Level.WARNING, msg);
+                LOG.log(Level.WARNING, "Unexpected exception when trying to 
install Aries Blueprint namespaces", e);
             }
         }
     }

Reply via email to