|
|
|
@ -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", |
|
|
|
@ -1339,6 +1343,7 @@ static void log_metadata(const grpc_metadata_batch* md_batch, uint32_t id, |
|
|
|
|
gpr_free(key); |
|
|
|
|
gpr_free(value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void perform_stream_op_locked(void* stream_op, |
|
|
|
|