diff options
author | Craig Tiller <ctiller@google.com> | 2017-10-18 15:00:40 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-10-18 15:00:40 -0700 |
commit | 3c991309962418c447ee5b4f99fec396a4a3c3e1 (patch) | |
tree | a599506c8aac4d1f803a131369fd05e5cf3b30e4 /src/core/ext/transport | |
parent | 694580faee3a3bb91f9922a1d04125aa48f50bd5 (diff) |
Add debug-only trace flags
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.cc | 5 | ||||
-rw-r--r-- | src/core/ext/transport/chttp2/transport/internal.h | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index 19fdcc9150..8f837b6a14 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -93,9 +93,8 @@ static int g_default_max_ping_strikes = DEFAULT_MAX_PING_STRIKES; grpc_core::TraceFlag grpc_http_trace(false, "http"); grpc_core::TraceFlag grpc_flowctl_trace(false, "flowctl"); -#ifndef NDEBUG -grpc_core::TraceFlag grpc_trace_chttp2_refcount(false, "chttp2_refcount"); -#endif +grpc_core::DebugOnlyTraceFlag grpc_trace_chttp2_refcount(false, + "chttp2_refcount"); /* forward declarations of various callbacks that we'll build closures around */ static void write_action_begin_locked(grpc_exec_ctx *exec_ctx, void *t, diff --git a/src/core/ext/transport/chttp2/transport/internal.h b/src/core/ext/transport/chttp2/transport/internal.h index 6ef32958e0..f658b66391 100644 --- a/src/core/ext/transport/chttp2/transport/internal.h +++ b/src/core/ext/transport/chttp2/transport/internal.h @@ -681,10 +681,10 @@ void grpc_chttp2_complete_closure_step(grpc_exec_ctx *exec_ctx, extern grpc_core::TraceFlag grpc_http_trace; extern grpc_core::TraceFlag grpc_flowctl_trace; -#define GRPC_CHTTP2_IF_TRACING(stmt) \ - if (!(GRPC_TRACER_ON(grpc_http_trace))) \ - ; \ - else \ +#define GRPC_CHTTP2_IF_TRACING(stmt) \ + if (!grpc_http_trace.enabled()) \ + ; \ + else \ stmt void grpc_chttp2_fake_status(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t, |