hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35728] - getResponseBody always logs messages
Date Fri, 15 Jul 2005 05:43:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35728>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35728





------- Additional Comments From rolweber@de.ibm.com  2005-07-15 07:43 -------
Hello Jilles,

> I'd still prefer no log message at all. Once again, components like this
> should IMHO be totally silent unless you debug them and throw exceptions
> when bad stuff happens.

Let me repeat: if you want HttpClient to be totally silent, then disable
HttpClient logging. By default, messages with a level higher than "INFO"
will be logged. Just switch them off unless you debug. This default comes
from the logging component you use, not from HttpClient. We can't change
it for you.

When bad stuff happens, exceptions will be thrown. When questionable stuff
happens, such as in this case, no exception will be thrown because
HttpClient is able to deal with the situation. It would not be reasonable
to throw an exception in this case, because then every application would
need exception handling code for it. And we would have to add an API to
perform the same action without an exception being thrown. You do not really
expect us to duplicate the whole API, just to have methods that will not
throw "questionable" exceptions in addition to those that do?

cheers,
  Roland


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message