From d3afa34b6bfdb153ed47bfdf058c5781160b333d Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Mon, 11 Nov 2024 20:39:55 +0000 Subject: [PATCH] add trace logging for HTTP response --- src/core/util/http_client/httpcli.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/util/http_client/httpcli.cc b/src/core/util/http_client/httpcli.cc index 226d352fb30..20e77682c81 100644 --- a/src/core/util/http_client/httpcli.cc +++ b/src/core/util/http_client/httpcli.cc @@ -244,6 +244,8 @@ void HttpRequest::AppendError(grpc_error_handle error) { void HttpRequest::OnReadInternal(grpc_error_handle error) { for (size_t i = 0; i < incoming_.count; i++) { + GRPC_TRACE_LOG(http1, INFO) + << "HTTP response data: " << StringViewFromSlice(incoming_.slices[i]); if (GRPC_SLICE_LENGTH(incoming_.slices[i])) { have_read_byte_ = 1; grpc_error_handle err =