aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/surface_trace.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 21:56:38 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 21:56:38 -0800
commitfaa8480a399061cef95aef394b2e1977bdef4b4a (patch)
treed00093c3b13072bcff5f60c1989e9af01fa3691e /src/core/surface/surface_trace.h
parent3ec73cec8f38339af7b430932e92492bac0e27dc (diff)
Tracer registration.
First: ugh. Second: allow tracer global variables to be registered and then parsed out of a configuration environment variable. Expose TSI trace config variable directly to ease this a little.
Diffstat (limited to 'src/core/surface/surface_trace.h')
-rw-r--r--src/core/surface/surface_trace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/surface/surface_trace.h b/src/core/surface/surface_trace.h
index 50071ee317..01302bb5d4 100644
--- a/src/core/surface/surface_trace.h
+++ b/src/core/surface/surface_trace.h
@@ -37,8 +37,10 @@
#include "src/core/debug/trace.h"
#include <grpc/support/log.h>
+extern int grpc_surface_trace;
+
#define GRPC_SURFACE_TRACE_RETURNED_EVENT(cq, event) \
- if (grpc_trace_bits & GRPC_TRACE_SURFACE) { \
+ if (grpc_surface_trace) { \
char *_ev = grpc_event_string(event); \
gpr_log(GPR_INFO, "RETURN_EVENT[%p]: %s", cq, _ev); \
gpr_free(_ev); \