From c61312a17b02ee12708c56e0b24e1b5efa7870ea Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Tue, 13 Dec 2022 15:14:54 +0100 Subject: [PATCH] Improve logging of DTLS transport handshake showing whether the DTLS transport is active and will send a client hello or not. BUG=None Change-Id: If5c631c5e8701b0d1a4bb484467c93027b994ed7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/287863 Reviewed-by: Taylor Brandstetter Reviewed-by: Harald Alvestrand Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/main@{#38886} --- p2p/base/dtls_transport.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p2p/base/dtls_transport.cc b/p2p/base/dtls_transport.cc index 4180bc8348..af16efad78 100644 --- a/p2p/base/dtls_transport.cc +++ b/p2p/base/dtls_transport.cc @@ -758,7 +758,9 @@ void DtlsTransport::MaybeStartDtls() { set_dtls_state(webrtc::DtlsTransportState::kFailed); return; } - RTC_LOG(LS_INFO) << ToString() << ": DtlsTransport: Started DTLS handshake"; + RTC_LOG(LS_INFO) << ToString() + << ": DtlsTransport: Started DTLS handshake active=" + << IsDtlsActive(); set_dtls_state(webrtc::DtlsTransportState::kConnecting); // Now that the handshake has started, we can process a cached ClientHello // (if one exists).