diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-10 12:58:03 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-10 12:58:03 -0700 |
commit | fc353d624944dcceeb67dd27e4fc48e747b17988 (patch) | |
tree | f75bc0c1221c7b54219b904077c47e1c55653847 /src/core/lib/transport | |
parent | 06a5dc4d5d44156d1d115b905ac4d64ecbae858a (diff) |
Fix refcounting bug
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r-- | src/core/lib/transport/connectivity_state.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lib/transport/connectivity_state.c b/src/core/lib/transport/connectivity_state.c index da0de276a2..3286af9fb2 100644 --- a/src/core/lib/transport/connectivity_state.c +++ b/src/core/lib/transport/connectivity_state.c @@ -152,9 +152,11 @@ void grpc_connectivity_state_set(grpc_exec_ctx *exec_ctx, grpc_error *error, const char *reason) { grpc_connectivity_state_watcher *w; if (grpc_connectivity_state_trace) { - gpr_log(GPR_DEBUG, "SET: %p %s: %s --> %s [%s]", tracker, tracker->name, - grpc_connectivity_state_name(tracker->current_state), - grpc_connectivity_state_name(state), reason); + const char *error_string = grpc_error_string(error); + gpr_log(GPR_DEBUG, "SET: %p %s: %s --> %s [%s] error=%p %s", tracker, + tracker->name, grpc_connectivity_state_name(tracker->current_state), + grpc_connectivity_state_name(state), reason, error, error_string); + grpc_error_free_string(error_string); } switch (state) { case GRPC_CHANNEL_CONNECTING: |