Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 73429 invoked from network); 28 Oct 2009 20:05:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Oct 2009 20:05:30 -0000 Received: (qmail 6675 invoked by uid 500); 28 Oct 2009 20:05:30 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 6611 invoked by uid 500); 28 Oct 2009 20:05:30 -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 6602 invoked by uid 99); 28 Oct 2009 20:05:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 20:05:30 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00 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; Wed, 28 Oct 2009 20:05:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 82DD6238890A; Wed, 28 Oct 2009 20:05:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r830747 - /cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java Date: Wed, 28 Oct 2009 20:05:03 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091028200503.82DD6238890A@eris.apache.org> Author: dkulp Date: Wed Oct 28 20:05:03 2009 New Revision: 830747 URL: http://svn.apache.org/viewvc?rev=830747&view=rev Log: Precaution to make sure the logging triggers once. (sometimes happens with faults) Modified: cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java Modified: cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java?rev=830747&r1=830746&r2=830747&view=diff ============================================================================== --- cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java (original) +++ cxf/branches/2.1.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java Wed Oct 28 20:05:03 2009 @@ -96,11 +96,15 @@ } private void logging(Message message) throws Fault { + if (message.containsKey(LoggingMessage.ID_KEY)) { + return; + } String id = (String)message.getExchange().get(LoggingMessage.ID_KEY); if (id == null) { id = LoggingMessage.nextId(); message.getExchange().put(LoggingMessage.ID_KEY, id); } + message.put(LoggingMessage.ID_KEY, id); final LoggingMessage buffer = new LoggingMessage("Inbound Message\n----------------------------", id);