Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4A6F9200B30 for ; Mon, 4 Jul 2016 17:08:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47974160A6D; Mon, 4 Jul 2016 15:08:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9B18B160A34 for ; Mon, 4 Jul 2016 17:08:48 +0200 (CEST) Received: (qmail 63188 invoked by uid 500); 4 Jul 2016 15:08:47 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 63179 invoked by uid 99); 4 Jul 2016 15:08:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2016 15:08:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AEAAFE03C0; Mon, 4 Jul 2016 15:08:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cschneider@apache.org To: commits@cxf.apache.org Date: Mon, 04 Jul 2016 15:08:47 -0000 Message-Id: <4d5b421dd613445fb318e4b9e255b83e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] cxf git commit: Make logging of missing blueprint less verbose archived-at: Mon, 04 Jul 2016 15:08:49 -0000 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 Authored: Thu Jun 30 14:14:57 2016 +0200 Committer: Christian Schneider 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); } } }