aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext
diff options
context:
space:
mode:
authorGravatar Eric Gribkoff <ericgribkoff@google.com>2018-05-12 15:12:12 -0700
committerGravatar Eric Gribkoff <ericgribkoff@google.com>2018-05-14 11:31:43 -0700
commit077dc7624dc49c64e99d0a9827e185fe415c7c6c (patch)
tree8b7e92a1b7641ec137f9e32a380a1e035d5186f8 /src/core/ext
parent61fdb46ac456027c79841949272ec540f66d2317 (diff)
chttp2_transport: remove unused string
Diffstat (limited to 'src/core/ext')
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
index 0ef73961a5..ada0088914 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
@@ -1800,8 +1800,11 @@ static void perform_transport_op_locked(void* stream_op,
static void perform_transport_op(grpc_transport* gt, grpc_transport_op* op) {
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
- char* msg = grpc_transport_op_string(op);
- gpr_free(msg);
+ if (grpc_http_trace.enabled()) {
+ char* msg = grpc_transport_op_string(op);
+ gpr_log(GPR_INFO, "perform_transport_op[t=%p]: %s", t, msg);
+ gpr_free(msg);
+ }
op->handler_private.extra_arg = gt;
GRPC_CHTTP2_REF_TRANSPORT(t, "transport_op");
GRPC_CLOSURE_SCHED(GRPC_CLOSURE_INIT(&op->handler_private.closure,