Fix mdelem tracing

reviewable/pr16488/r2
Hope Casey-Allen 6 years ago
parent 1a92eb46d4
commit 9e08651639
  1. 5
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@ -1332,6 +1332,10 @@ static void log_metadata(const grpc_metadata_batch* md_batch, uint32_t id,
bool is_client, bool is_initial) {
for (grpc_linked_mdelem* md = md_batch->list.head; md != nullptr;
md = md->next) {
if (is_valid_mdelem_index(md->md_index)) {
gpr_log(GPR_INFO, "HTTP:%d:%s:%s: hpack table index: %d", id, is_initial ? "HDR" : "TRL",
is_client ? "CLI" : "SVR", md->md_index);
} else {
char* key = grpc_slice_to_c_string(GRPC_MDKEY(md->md));
char* value = grpc_slice_to_c_string(GRPC_MDVALUE(md->md));
gpr_log(GPR_INFO, "HTTP:%d:%s:%s: %s: %s", id, is_initial ? "HDR" : "TRL",
@ -1340,6 +1344,7 @@ static void log_metadata(const grpc_metadata_batch* md_batch, uint32_t id,
gpr_free(value);
}
}
}
static void perform_stream_op_locked(void* stream_op,
grpc_error* error_ignored) {

Loading…
Cancel
Save