From 64321c061862e802df75ae39711197d0b631bdee Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Wed, 23 May 2018 15:53:33 -0700 Subject: Log error message for debugging #14700 --- test/core/http/httpcli_test.cc | 3 ++- test/core/http/httpscli_test.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test/core/http') 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) { "

This is a test

"; grpc_http_response* response = static_cast(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) { "

This is a test

"; grpc_http_response* response = static_cast(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)); -- cgit v1.2.3