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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to