diff --git a/quic/api/QuicTransportBase.cpp b/quic/api/QuicTransportBase.cpp index 626f6b191..c458841b1 100644 --- a/quic/api/QuicTransportBase.cpp +++ b/quic/api/QuicTransportBase.cpp @@ -23,6 +23,7 @@ #include #include #include +#include namespace quic { @@ -3401,6 +3402,11 @@ void QuicTransportBase::setCongestionControl(CongestionControlType type) { conn_->congestionController = conn_->congestionControllerFactory->makeCongestionController( *conn_, type); + if (conn_->qLogger) { + std::stringstream s; + s << "CCA set to " << congestionControlTypeToString(type); + conn_->qLogger->addTransportStateUpdate(s.str()); + } } }