Logging more info when ConsumeCryptoData fails.
PiperOrigin-RevId: 404559181
diff --git a/quic/core/quic_packet_creator.cc b/quic/core/quic_packet_creator.cc
index 19168fb..5984fd0 100644
--- a/quic/core/quic_packet_creator.cc
+++ b/quic/core/quic_packet_creator.cc
@@ -1455,7 +1455,12 @@
// assuming here that they won't occupy so much of the packet that a
// CRYPTO frame won't fit.
QUIC_BUG(quic_bug_10752_26)
- << ENDPOINT << "Failed to ConsumeCryptoData at level " << level;
+ << ENDPOINT << "Failed to ConsumeCryptoData at level " << level
+ << ", pending_frames: " << GetPendingFramesInfo()
+ << ", has_soft_max_packet_length: " << HasSoftMaxPacketLength()
+ << ", max_packet_length: " << max_packet_length_
+ << ", transmission_type: "
+ << TransmissionTypeToString(next_transmission_type_);
return 0;
}
total_bytes_consumed += frame.crypto_frame->data_length;