perfsonar / perl-shared

Shared libraries used by perl packages and referenced as a submodule in many git repos
Apache License 2.0
7 stars 3 forks source link

Include the response body in error logs from HTTP failures #88

Closed candlerb closed 5 years ago

candlerb commented 5 years ago

This means that instead of seeing just INTERNAL SERVER ERROR in client logs, you see INTERNAL SERVER ERROR: <message from remote host>

candlerb commented 5 years ago

Note: the ability to show the error message body was removed in commit 97fbb726 with the description "Better error handling in client libraries."

It changed from displaying the response body, to displaying just the HTTP status message.

This patch means that both are now displayed.