Skip to content

Commit

Permalink
Merge pull request #87 from getsentry/feat/crashpad_curl_response_bod…
Browse files Browse the repository at this point in the history
…y_log

crashpad_handler: add response body to error log if status is not OK
  • Loading branch information
supervacuus authored Jun 15, 2023
2 parents 514169d + 825cec1 commit 432ff49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/net/http_transport_libcurl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ bool HTTPTransportLibcurl::ExecuteSynchronously(std::string* response_body) {
}

if (status != 200) {
LOG(ERROR) << base::StringPrintf("HTTP status %ld", status);
LOG(ERROR) << base::StringPrintf(
"HTTP status %ld, response = \"%s\"", status, response_body->c_str());
return false;
}

Expand Down

0 comments on commit 432ff49

Please sign in to comment.