hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r610052 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java
Date Tue, 08 Jan 2008 16:24:52 GMT
Author: olegk
Date: Tue Jan  8 08:24:51 2008
New Revision: 610052

URL: http://svn.apache.org/viewvc?rev=610052&view=rev
Log:
Log HTTP parameter values in ClientParamsStack#getParameter 

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java?rev=610052&r1=610051&r2=610052&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java
Tue Jan  8 08:24:51 2008
@@ -32,6 +32,8 @@
 package org.apache.http.impl.client;
 
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.http.params.HttpParams;
 import org.apache.http.params.AbstractHttpParams;
 
@@ -75,6 +77,8 @@
  */
 public class ClientParamsStack extends AbstractHttpParams {
 
+    private static final Log LOG = LogFactory.getLog(ClientParamsStack.class);
+    
     /** The application parameter collection, or <code>null</code>. */
     protected final HttpParams applicationParams;
 
@@ -210,6 +214,9 @@
         }
         if ((result == null) && (applicationParams != null)) {
             result = applicationParams.getParameter(name);
+        }
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("'" + name + "': " + result);
         }
 
         return result;



Mime
View raw message