From 33498f875aa4cc009e10ea9fe68b2792841642cf Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Tue, 8 Jan 2008 16:24:51 +0000 Subject: [PATCH] Log HTTP parameter values in ClientParamsStack#getParameter git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@610052 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/impl/client/ClientParamsStack.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java b/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java index 7d0bd7888..6b0ab0435 100644 --- a/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java +++ b/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java @@ -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 @@ import org.apache.http.params.AbstractHttpParams; */ public class ClientParamsStack extends AbstractHttpParams { + private static final Log LOG = LogFactory.getLog(ClientParamsStack.class); + /** The application parameter collection, or null. */ protected final HttpParams applicationParams; @@ -211,6 +215,9 @@ public class ClientParamsStack extends AbstractHttpParams { if ((result == null) && (applicationParams != null)) { result = applicationParams.getParameter(name); } + if (LOG.isDebugEnabled()) { + LOG.debug("'" + name + "': " + result); + } return result; }