You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/07/11 23:15:44 UTC
svn commit: r1360405 - in
/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http:
HTTPConduit.java Messages.properties
Author: dkulp
Date: Wed Jul 11 21:15:44 2012
New Revision: 1360405
URL: http://svn.apache.org/viewvc?rev=1360405&view=rev
Log:
Only log the warning level once to avoid flooding the logs.
Modified:
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties
Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=1360405&r1=1360404&r2=1360405&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java Wed Jul 11 21:15:44 2012
@@ -171,6 +171,8 @@ public class HTTPConduit
* The Logger for this class.
*/
private static final Logger LOG = LogUtils.getL7dLogger(HTTPConduit.class);
+
+ private static boolean hasLoggedAsyncWarning;
/**
* This constant holds the suffix ".http-conduit" that is appended to the
@@ -1567,7 +1569,11 @@ public class HTTPConduit
&& policy.isAsyncExecuteTimeoutRejection()) {
throw rex;
}
- LOG.warning("EXECUTOR_FULL");
+ if (!hasLoggedAsyncWarning) {
+ LOG.warning("EXECUTOR_FULL_WARNING");
+ hasLoggedAsyncWarning = true;
+ }
+ LOG.fine("EXECUTOR_FULL");
handleResponseInternal();
}
}
Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties?rev=1360405&r1=1360404&r2=1360405&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties Wed Jul 11 21:15:44 2012
@@ -26,4 +26,5 @@ MISSING_PATH_INFO = PATH_INFO not presen
INVALID_ENCODING_MSG = Invalid character set {0} in request.
INVALID_TIMEOUT_FORMAT = Invalid name/value pair {0}={1} set in RequestConext
NO_HTTP_DESTINATION_FACTORY_FOUND = Cannot find any registered HttpDestinationFactory from the Bus.
-EXECUTOR_FULL = Executor rejected background task to retrieve the response, running on current thread.
\ No newline at end of file
+EXECUTOR_FULL = Executor rejected background task to retrieve the response, running on current thread.
+EXECUTOR_FULL_WARNING = Executor rejected background task to retrieve the response. Suggest increasing the workqueue settings.
\ No newline at end of file