diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-03-02 13:54:36 -0800 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-03-02 13:54:36 -0800 |
commit | 0aad3d74577c55ee9d372082b3e0d6457de7a14a (patch) | |
tree | 19dc88741765a52976cd3ec7a828a0d0eff7d4a4 /src/core/channel | |
parent | 961141002ae30ec1dbaf2725c59b3ffe4cde3e0f (diff) | |
parent | 39b9a029cf6309fffbc2ccf8f4e0f6e2b74cc5e6 (diff) |
Merge pull request #908 from ctiller/ssl
Hookup TSI tracer
Diffstat (limited to 'src/core/channel')
-rw-r--r-- | src/core/channel/channel_stack.c | 2 | ||||
-rw-r--r-- | src/core/channel/channel_stack.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/channel/channel_stack.c b/src/core/channel/channel_stack.c index 0382a7a2f3..21df9771ce 100644 --- a/src/core/channel/channel_stack.c +++ b/src/core/channel/channel_stack.c @@ -36,6 +36,8 @@ #include <stdlib.h> +int grpc_trace_channel = 0; + /* Memory layouts. Channel stack is laid out as: { diff --git a/src/core/channel/channel_stack.h b/src/core/channel/channel_stack.h index c136f5c17c..ef1da7b33b 100644 --- a/src/core/channel/channel_stack.h +++ b/src/core/channel/channel_stack.h @@ -298,7 +298,9 @@ void grpc_call_element_recv_metadata(grpc_call_element *cur_elem, void grpc_call_element_send_cancel(grpc_call_element *cur_elem); void grpc_call_element_send_finish(grpc_call_element *cur_elem); +extern int grpc_trace_channel; + #define GRPC_CALL_LOG_OP(sev, elem, op) \ - if (grpc_trace_bits & GRPC_TRACE_CHANNEL) grpc_call_log_op(sev, elem, op) + if (grpc_trace_channel) grpc_call_log_op(sev, elem, op) #endif /* GRPC_INTERNAL_CORE_CHANNEL_CHANNEL_STACK_H */ |