hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Dever <jsde...@sympatico.ca>
Subject Re: [PATCH]: HttpClient to report system properties in debug mode
Date Thu, 10 Apr 2003 20:44:03 GMT
Go for it.

Oleg Kalnichevski wrote:

>Makes sense. I have also been thinking about logging out JCE & JSSE
>properties as well.
>
>Oleg 
>
>On Thu, 2003-04-10 at 22:08, Jeffrey Dever wrote:
>  
>
>>Sounds good.  Might want to log out those properties staticly when 
>>HttpClient is loaded.
>>
>>Oleg Kalnichevski wrote:
>>
>>    
>>
>>>Folks,
>>>
>>>I suspect we can seriously count on a significant increase in number of
>>>bug reports and requests for assistance following the 2.0-beta1 release.
>>>I am mostly concerned about those kind of reports, you know: "I just got
>>>your stuff. I does not work. What a heck is wrong? Please fix it"
>>>
>>>To ease our life troubleshooting problems I would like HttpClient to
>>>report its system properties such as Java version, OS, class path when
>>>run in debug mode.
>>>
>>>Any objections to that?
>>>
>>>Oleg
>>> 
>>>
>>>------------------------------------------------------------------------
>>>
>>>Index: java/org/apache/commons/httpclient/HttpClient.java
>>>===================================================================
>>>RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
>>>retrieving revision 1.72
>>>diff -u -r1.72 HttpClient.java
>>>--- java/org/apache/commons/httpclient/HttpClient.java	9 Apr 2003 18:37:59 -0000
1.72
>>>+++ java/org/apache/commons/httpclient/HttpClient.java	10 Apr 2003 18:30:41 -0000
>>>@@ -1,5 +1,5 @@
>>>/*
>>>- * $Header: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.72 2003/04/09 18:37:59 olegk Exp $
>>>+ * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.72 2003/04/09 18:37:59 olegk Exp $
>>> * $Revision: 1.72 $
>>> * $Date: 2003/04/09 18:37:59 $
>>> *
>>>@@ -124,7 +124,15 @@
>>>        this.state.setHttpConnectionManager(httpConnectionManager);
>>>
>>>        this.hostConfiguration = new HostConfiguration();
>>>-
>>>+        
>>>+        if (LOG.isDebugEnabled()) {
>>>+            LOG.debug("Java version: " + System.getProperty("java.version"));
>>>+            LOG.debug("Java vendor: " + System.getProperty("java.vendor"));
>>>+            LOG.debug("Java class path: " + System.getProperty("java.class.path"));
>>>+            LOG.debug("Operating system name: " + System.getProperty("os.name"));
>>>+            LOG.debug("Operating system architecture: " + System.getProperty("os.arch"));
>>>+            LOG.debug("Operating system version: " + System.getProperty("os.version"));
>>>+        }
>>>    }
>>>    
>>>    // ----------------------------------------------------- Instance Variables
>>>
>>> 
>>>
>>>------------------------------------------------------------------------
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>>>
>>>      
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>
>
>  
>




Mime
View raw message