diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-05-23 15:53:33 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-05-23 15:53:33 -0700 |
commit | 64321c061862e802df75ae39711197d0b631bdee (patch) | |
tree | 223bbb00a96b1135fa80fe47d124f81ab56144c4 /test/core/http | |
parent | 463e4d56193bbaec3977ce38fb8f0103d006794e (diff) |
Log error message for debugging #14700
Diffstat (limited to 'test/core/http')
-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)); |