cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1190511 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
Date Fri, 28 Oct 2011 19:19:55 GMT
Author: dkulp
Date: Fri Oct 28 19:19:55 2011
New Revision: 1190511

URL: http://svn.apache.org/viewvc?rev=1190511&view=rev
Log:
Slight optimization

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=1190511&r1=1190510&r2=1190511&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:19:55 2011
@@ -65,14 +65,14 @@ public abstract class AbstractLoggingInt
         if (endpoint.getService() == null) {
             return getLogger();
         }
-        String serviceName = endpoint.getService().getName().getLocalPart();
-        InterfaceInfo iface = endpoint.getService().getInterface();
-        String portName = endpoint.getName().getLocalPart();
-        String portTypeName = iface.getName().getLocalPart();
-        String logName = "org.apache.cxf.services." + serviceName + "." 
-            + portName + "." + portTypeName;
         Logger logger = endpoint.getProperty("MessageLogger", Logger.class);
         if (logger == null) {
+            String serviceName = endpoint.getService().getName().getLocalPart();
+            InterfaceInfo iface = endpoint.getService().getInterface();
+            String portName = endpoint.getName().getLocalPart();
+            String portTypeName = iface.getName().getLocalPart();
+            String logName = "org.apache.cxf.services." + serviceName + "." 
+                + portName + "." + portTypeName;
             logger = LogUtils.getL7dLogger(this.getClass(), null, logName);
             endpoint.setProperty("MessageLogger", logger);
         }



Mime
View raw message