You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wink.apache.org by bl...@apache.org on 2009/09/23 04:27:11 UTC
svn commit: r817934 - in /incubator/wink/trunk:
wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java
wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
Author: bluk
Date: Wed Sep 23 02:27:10 2009
New Revision: 817934
URL: http://svn.apache.org/viewvc?rev=817934&view=rev
Log:
Change info message for client for OOM error
Modified:
incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java
incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
Modified: incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java?rev=817934&r1=817933&r2=817934&view=diff
==============================================================================
--- incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java (original)
+++ incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java Wed Sep 23 02:27:10 2009
@@ -230,8 +230,11 @@
request.setURI(requestURI);
request.setMethod(method);
request.getHeaders().putAll(headers);
- logger.info(Messages.getMessage("clientIssueRequest"),
- new Object[] {method, requestURI, requestEntity, headers});
+ if (logger.isInfoEnabled()) {
+ Class<?> requestEntityClass = (requestEntity == null) ? null : requestEntity.getClass();
+ logger.info(Messages.getMessage("clientIssueRequest"), new Object[] {method,
+ requestURI, requestEntityClass, headers});
+ }
if (headers.getFirst(HttpHeaders.USER_AGENT) == null) {
request.getHeaders().add(HttpHeaders.USER_AGENT, USER_AGENT);
}
Modified: incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties?rev=817934&r1=817933&r2=817934&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties (original)
+++ incubator/wink/trunk/wink-common/src/main/resources/org/apache/wink/common/internal/i18n/resource.properties Wed Sep 23 02:27:10 2009
@@ -116,6 +116,6 @@
noMethodInClassSupportsHTTPMethod=Could not find any method in class {} that supports {}
# Client Handler
-clientIssueRequest=Issuing client {} method request to URI at {} with {} entity and {} headers
+clientIssueRequest=Issuing client {} method request to URI at {} with {} entity class and {} headers
clientAcceptHeaderHandlerSetAccept=Accept header automatically set to: {}
clientResponseIsErrorCode=Client response is an error code: {}