Log migration to absl

pull/36728/head
Esun Kim 5 months ago
parent 189aa40553
commit f1c7ed4d00
  1. 7
      src/core/tsi/ssl_transport_security.cc

@ -1831,13 +1831,14 @@ static tsi_result ssl_handshaker_next(tsi_handshaker* self,
// handshaker_result has been created.
self->handshaker_result_created = true;
// Output Cipher information
if (GRPC_TRACE_FLAG_ENABLED(tsi_tracing_enabled)) {
if (GRPC_TRACE_FLAG_ENABLED(tsi)) {
tsi_ssl_handshaker_result* result =
reinterpret_cast<tsi_ssl_handshaker_result*>(*handshaker_result);
auto cipher = SSL_get_current_cipher(result->ssl);
if (cipher != nullptr) {
gpr_log(GPR_INFO, "SSL Cipher Version: %s Name: %s",
SSL_CIPHER_get_version(cipher), SSL_CIPHER_get_name(cipher));
LOG(INFO) << absl::StrFormat("SSL Cipher Version: %s Name: %s",
SSL_CIPHER_get_version(cipher),
SSL_CIPHER_get_name(cipher));
}
}
}

Loading…
Cancel
Save