You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cl...@apache.org on 2010/01/03 23:36:54 UTC
svn commit: r895499 - in /cxf/branches/2.2.x-fixes: ./
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Author: cleclerc
Date: Sun Jan 3 22:36:52 2010
New Revision: 895499
URL: http://svn.apache.org/viewvc?rev=895499&view=rev
Log:
Merged revisions 895497 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r895497 | cleclerc | 2010-01-03 23:32:53 +0100 (Sun, 03 Jan 2010) | 1 line
Add guards to logger calls to prevent unnecessary strings concatenations
........
Modified:
cxf/branches/2.2.x-fixes/ (props changed)
cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Jan 3 22:36:52 2010
@@ -1 +1 @@
-/cxf/trunk:817055,891375-891393,891452,891817,891827,891859,891945-891946,892056,892307,892360,892664,892890,892920,892953,892988,893011,893250,893388-893389,893563,893773,894197,894603
+/cxf/trunk:817055,891375-891393,891452,891817,891827,891859,891945-891946,892056,892307,892360,892664,892890,892920,892953,892988,893011,893250,893388-893389,893563,893773,894197,894603,895497
Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java?rev=895499&r1=895498&r2=895499&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java (original)
+++ cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java Sun Jan 3 22:36:52 2010
@@ -21,6 +21,7 @@
import java.util.List;
import java.util.ResourceBundle;
+import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ws.rs.WebApplicationException;
@@ -191,13 +192,14 @@
}
}
-
- LOG.fine("Request path is: " + rawPath);
- LOG.fine("Request HTTP method is: " + httpMethod);
- LOG.fine("Request contentType is: " + requestContentType);
- LOG.fine("Accept contentType is: " + acceptTypes);
-
- LOG.fine("Found operation: " + ori.getMethodToInvoke().getName());
+ if (LOG.isLoggable(Level.FINE)) {
+ LOG.fine("Request path is: " + rawPath);
+ LOG.fine("Request HTTP method is: " + httpMethod);
+ LOG.fine("Request contentType is: " + requestContentType);
+ LOG.fine("Accept contentType is: " + acceptTypes);
+
+ LOG.fine("Found operation: " + ori.getMethodToInvoke().getName());
+ }
setMessageProperties(message, ori, values, resources.size());
//Process parameters