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

2018-12-19 Thread GitBox
michael-o edited a comment on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448722303 So the message says 500? What ist that supposed to mean? No context. A status code isn't a message.

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

2018-12-19 Thread GitBox
panchenko commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448724569 "500" is slightly better than an empty string, that's all. Surely it can be made more verbose.

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

2018-12-19 Thread GitBox
panchenko commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448726260 ... and the meaning of 500 comes from the HttpResponseException exception class. The message alone is not

[GitHub] michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448722303 So the message says 500? What ist that supposed t mean? No context. A status code isn't a message. It

[GitHub] michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448770010 @ok2c Why not provide a reasonable message like `status code: %s, reason phrase: %s`. If reason phase is

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

2018-12-19 Thread GitBox
michael-o edited a comment on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448770010 @ok2c Why not provide a reasonable message like `status code: %s, reason phrase: %s`? If reason phase

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

2018-12-19 Thread GitBox
panchenko commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448749749 to HttpResponseException, which extends IOException

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

2018-12-19 Thread GitBox
panchenko edited a comment on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448751399 The point is having it logged like this ``` org.apache.http.client.HttpResponseException: 404

[GitHub] ok2c commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448753350 @michael-o Having a status code as an error message is a **massive** improvement over having no error message at

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

2018-12-19 Thread GitBox
panchenko commented 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.

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

2018-12-19 Thread GitBox
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

[GitHub] michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448744370 But since you pass "500" to IOException, this gives no benefit at all. There has to be a better approach.

[GitHub] panchenko opened a new pull request #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
panchenko opened a new pull request #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126 Tomcat 8.5 omits reason phrase. So in order to have more informative logs I would suggest using statusCode instead. It

[GitHub] ok2c commented on a change in pull request #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c commented on a change in pull request #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#discussion_r242850662 ## File path:

[GitHub] ok2c closed pull request #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c closed pull request #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of

[GitHub] panchenko opened a new pull request #127: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
panchenko opened a new pull request #127: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/127 (cherry picked from commit 20dfff12c4dc3f73fe5d19b690c2eee033ed4125)

[GitHub] ok2c commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448628461 @panchenko By the way, would you mind porting this change to `master`?

[GitHub] panchenko commented on a change in pull request #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
panchenko commented on a change in pull request #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#discussion_r242946793 ## File path:

[GitHub] ok2c closed pull request #127: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c closed pull request #127: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/127 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of

[GitHub] ok2c commented on issue #127: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
ok2c commented on issue #127: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/127#issuecomment-448635118 @panchenko The test case still needs porting.

[GitHub] michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode

2018-12-19 Thread GitBox
michael-o commented on issue #126: replace empty HttpResponseException.message with statusCode URL: https://github.com/apache/httpcomponents-client/pull/126#issuecomment-448683230 I request to revert this. This is redundant information. This PR just pointless. Tomcat omits the phrase on