You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cs...@apache.org on 2016/07/04 14:59:09 UTC
[4/5] 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/1bdbb00b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1bdbb00b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1bdbb00b
Branch: refs/heads/origin/3.1.x-fixes
Commit: 1bdbb00b1f8cc614af1944898fb12bf4fe9dddf6
Parents: 45a7c4a
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Thu Jun 30 14:14:57 2016 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Mon Jul 4 16:58:37 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/1bdbb00b/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);
}
}
}