Skip to content

Commit 432ff49

Browse files
authored
Merge pull request #87 from getsentry/feat/crashpad_curl_response_body_log
crashpad_handler: add response body to error log if status is not OK
2 parents 514169d + 825cec1 commit 432ff49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/net/http_transport_libcurl.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ bool HTTPTransportLibcurl::ExecuteSynchronously(std::string* response_body) {
483483
}
484484

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

0 commit comments

Comments
 (0)