cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
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 GMT
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<String, Logger> messageLoggers = new HashMap<String, Logger>();
-    
     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;
     }



Mime
View raw message