wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r915985 - /incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java
Date Wed, 24 Feb 2010 21:30:40 GMT
Author: rott
Date: Wed Feb 24 21:30:40 2010
New Revision: 915985

URL: http://svn.apache.org/viewvc?rev=915985&view=rev
Log:
reduce log noise in client

Modified:
    incubator/wink/trunk/wink-client/src/main/java/org/apache/wink/client/internal/ResourceImpl.java

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=915985&r1=915984&r2=915985&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 Feb 24 21:30:40 2010
@@ -241,10 +241,10 @@
         request.setURI(requestURI);
         request.setMethod(method);
         request.getHeaders().putAll(headers);
-        if (logger.isInfoEnabled()) {
-            Class<?> requestEntityClass = (requestEntity == null) ? null : requestEntity.getClass();
-            logger.info(Messages.getMessage("clientIssueRequest"), new Object[] {method,
-                requestURI, requestEntityClass, headers});
+        if (logger.isDebugEnabled()) {
+            Integer requestEntityInfo = (requestEntity == null) ? null : System.identityHashCode(requestEntity);
+            logger.debug(Messages.getMessage("clientIssueRequest"), new Object[] {method,
+                requestURI, requestEntityInfo, headers.keySet()});
         }
         if (headers.getFirst(HttpHeaders.USER_AGENT) == null) {
             request.getHeaders().add(HttpHeaders.USER_AGENT, USER_AGENT);



Mime
View raw message