diff options
author | 2018-05-23 18:50:53 -0700 | |
---|---|---|
committer | 2018-05-23 18:50:53 -0700 | |
commit | f9035befc6c9b24f7111914d620102e58e80e94f (patch) | |
tree | a6dd4c3e75855a3485d9d827c113f48001cac6ae | |
parent | bb144f083efbef8520bd8ec1fd79e82fb819f6c3 (diff) | |
parent | 64321c061862e802df75ae39711197d0b631bdee (diff) |
Merge pull request #15527 from yashykt/httpsclihelp
Log error message for debugging #13650
-rw-r--r-- | test/core/http/httpcli_test.cc | 3 | ||||
-rw-r--r-- | test/core/http/httpscli_test.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/core/http/httpcli_test.cc b/test/core/http/httpcli_test.cc index 16448d9e14..a51a0a5f6d 100644 --- a/test/core/http/httpcli_test.cc +++ b/test/core/http/httpcli_test.cc @@ -47,7 +47,8 @@ static void on_finish(void* arg, grpc_error* error) { "<body><p>This is a test</p></body></html>"; grpc_http_response* response = static_cast<grpc_http_response*>(arg); GPR_ASSERT(response); - gpr_log(GPR_INFO, "response status %d", response->status); + gpr_log(GPR_INFO, "response status=%d error=%s", response->status, + grpc_error_string(error)); GPR_ASSERT(response->status == 200); GPR_ASSERT(response->body_length == strlen(expect)); GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length)); diff --git a/test/core/http/httpscli_test.cc b/test/core/http/httpscli_test.cc index b8f2e438a4..3fecf2b08b 100644 --- a/test/core/http/httpscli_test.cc +++ b/test/core/http/httpscli_test.cc @@ -49,7 +49,8 @@ static void on_finish(void* arg, grpc_error* error) { "<body><p>This is a test</p></body></html>"; grpc_http_response* response = static_cast<grpc_http_response*>(arg); GPR_ASSERT(response); - gpr_log(GPR_INFO, "response status %d", response->status); + gpr_log(GPR_INFO, "response status=%d error=%s", response->status, + grpc_error_string(error)); GPR_ASSERT(response->status == 200); GPR_ASSERT(response->body_length == strlen(expect)); GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length)); |