Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22DEB7209 for ; Fri, 28 Oct 2011 19:03:58 +0000 (UTC) Received: (qmail 84026 invoked by uid 500); 28 Oct 2011 19:03:58 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 83973 invoked by uid 500); 28 Oct 2011 19:03:58 -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 83965 invoked by uid 99); 28 Oct 2011 19:03:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 19:03:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 19:03:56 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D79602388A32 for ; Fri, 28 Oct 2011 19:03:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1190502 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java Date: Fri, 28 Oct 2011 19:03:36 -0000 To: commits@cxf.apache.org From: cschneider@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111028190336.D79602388A32@eris.apache.org> Author: cschneider Date: Fri Oct 28 19:03:36 2011 New Revision: 1190502 URL: http://svn.apache.org/viewvc?rev=1190502&view=rev Log: CXF-3888 Bugfix Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java?rev=1190502&r1=1190501&r2=1190502&view=diff ============================================================================== --- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java (original) +++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java Fri Oct 28 19:03:36 2011 @@ -52,8 +52,6 @@ public abstract class AbstractLoggingInt protected PrintWriter writer; protected boolean prettyLogging; - private Map messageLoggers = new HashMap(); - public AbstractLoggingInterceptor(String phase) { super(phase); } @@ -65,6 +63,9 @@ public abstract class AbstractLoggingInt Logger getMessageLogger(Message message) { EndpointInfo endpoint = message.getExchange().getEndpoint().getEndpointInfo(); + if (endpoint.getService() == null) { + return getLogger(); + } String serviceName = endpoint.getService().getName().getLocalPart(); InterfaceInfo iface = endpoint.getService().getInterface(); String portName = endpoint.getName().getLocalPart(); @@ -75,7 +76,6 @@ public abstract class AbstractLoggingInt if (logger == null) { logger = LogUtils.getL7dLogger(this.getClass(), null, logName); endpoint.setProperty("MessageLogger", logger); - messageLoggers.put(logName, logger); } return logger; }