diff options
author | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-08-19 18:22:53 -0700 |
---|---|---|
committer | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-10-02 16:37:33 -0700 |
commit | 76c3d7481f56ad1a9ab928c3e423030fa440a729 (patch) | |
tree | d73a37967133276e98e3c027a0524c35761909bb /src/core/surface/lame_client.c | |
parent | 861fbcbf22b2aae7d8793051ce6ef598fc6e074a (diff) |
Add API tracing to gRPC core
Diffstat (limited to 'src/core/surface/lame_client.c')
-rw-r--r-- | src/core/surface/lame_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/surface/lame_client.c b/src/core/surface/lame_client.c index 9e14ce2191..d2462d8c99 100644 --- a/src/core/surface/lame_client.c +++ b/src/core/surface/lame_client.c @@ -37,6 +37,7 @@ #include "src/core/channel/channel_stack.h" #include "src/core/support/string.h" +#include "src/core/surface/api_trace.h" #include "src/core/surface/channel.h" #include "src/core/surface/call.h" #include <grpc/support/alloc.h> @@ -151,6 +152,10 @@ grpc_channel *grpc_lame_client_channel_create(const char *target, channel = grpc_channel_create_from_filters(&exec_ctx, target, filters, 1, NULL, grpc_mdctx_create(), 1); elem = grpc_channel_stack_element(grpc_channel_get_channel_stack(channel), 0); + GRPC_API_TRACE( + "grpc_lame_client_channel_create(target=%s, error_code=%d, " + "error_message=%s)", + 3, (target, (int)error_code, error_message)); GPR_ASSERT(elem->filter == &lame_filter); chand = (channel_data *)elem->channel_data; chand->error_code = error_code; |