@@ -472,14 +472,7 @@ void QuicSocket::OnReceive(
472
472
QuicCID dcid (pdcid, pdcidlen);
473
473
QuicCID scid (pscid, pscidlen);
474
474
475
- // TODO(@jasnell): It would be fantastic if Debug() could be
476
- // modified to accept objects with a ToString-like capability
477
- // similar to what we can do with TraceEvents... that would
478
- // allow us to pass the QuicCID directly to Debug and have it
479
- // converted to hex only if the category is enabled so we can
480
- // skip committing resources here.
481
- std::string dcid_hex = dcid.ToString ();
482
- Debug (this , " Received a QUIC packet for dcid %s" , dcid_hex.c_str ());
475
+ Debug (this , " Received a QUIC packet for dcid %s" , dcid);
483
476
484
477
BaseObjectPtr<QuicSession> session = FindSession (dcid);
485
478
@@ -489,7 +482,7 @@ void QuicSocket::OnReceive(
489
482
// 3. The packet is a stateless reset sent by the peer
490
483
// 4. This is a malicious or malformed packet.
491
484
if (!session) {
492
- Debug (this , " There is no existing session for dcid %s" , dcid_hex. c_str () );
485
+ Debug (this , " There is no existing session for dcid %s" , dcid );
493
486
bool is_short_header = IsShortHeader (pversion, pscid, pscidlen);
494
487
495
488
// Handle possible reception of a stateless reset token...
0 commit comments