Merge pull request #20131 from apolcyn/log_alts_errors

Log errors in ALTS handshaker initial op completion cb
pull/20138/head
apolcyn 5 years ago committed by GitHub
commit a8b0b14a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc

@ -251,7 +251,14 @@ static void on_handshaker_service_resp_recv(void* arg, grpc_error* error) {
gpr_log(GPR_ERROR, "ALTS handshaker client is nullptr");
return;
}
alts_handshaker_client_handle_response(client, true);
bool success = true;
if (error != GRPC_ERROR_NONE) {
gpr_log(GPR_ERROR,
"ALTS handshaker on_handshaker_service_resp_recv error: %s",
grpc_error_string(error));
success = false;
}
alts_handshaker_client_handle_response(client, success);
}
/* gRPC provided callback used when dedicatd CQ and thread are used.

Loading…
Cancel
Save