You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by GitBox <gi...@apache.org> on 2018/12/19 20:09:35 UTC

[GitHub] panchenko edited a comment on issue #126: replace empty HttpResponseException.message with statusCode

panchenko edited a comment on issue #126: replace empty HttpResponseException.message with statusCode
URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448687098
 
 
   @michael-o The idea is having a bit more information in logs when logging an instance of IOException caught.
   It can be HttpResponseException or some socket/connect error, etc.
   
   Consider code like
   
   ```java
   try {
     String responseBody = httpClient.execute(new HttpGet("...."), new BasicResponseHandler());
     // process result
   } catch (IOException e) {
     log.error("Error", e);
     // some error handling
   }
   ```
   I agree it's redundant, but I don't see any harm.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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