You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2016/07/03 22:10:00 UTC

[03/20] cxf git commit: Make logging of missing blueprint less verbose

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/9e63961b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/9e63961b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/9e63961b

Branch: refs/heads/master-jaxrs-2.1
Commit: 9e63961bb4e6920189ede33629a8c18604ba385c
Parents: 6b8a340
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Thu Jun 30 14:14:57 2016 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Thu Jun 30 14:14:57 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/9e63961b/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);
             }
         }
     }