improved logging

pull/8787/head
David Garcia Quintas 8 years ago
parent c2e6254984
commit e7d2f21d6b
  1. 11
      src/core/ext/lb_policy/grpclb/grpclb.c

@ -633,12 +633,19 @@ static void rr_handover_locked(grpc_exec_ctx *exec_ctx,
"rr_handover_no_replace");
/* restore the old policy */
glb_policy->rr_policy = old_rr_policy;
if (grpc_lb_glb_trace) {
gpr_log(GPR_INFO,
"Keeping old RR policy (%p) despite new serverlist: new RR "
"policy was in %s connectivity state.",
(void *)old_rr_policy,
grpc_connectivity_state_name(new_rr_state));
}
return;
}
if (grpc_lb_glb_trace) {
gpr_log(GPR_INFO, "Created RR policy (%p)", (void *)glb_policy->rr_policy);
gpr_log(GPR_INFO, "RR handover. Old RR: %p", (void *)glb_policy->rr_policy);
gpr_log(GPR_INFO, "Created RR policy (%p) to replace old RR (%p)",
(void *)glb_policy->rr_policy, (void *)old_rr_policy);
}
if (old_rr_policy != NULL) {

Loading…
Cancel
Save