From 8a9c92054795a7e39aaf5f187869889278ba2efe Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 10 Dec 2024 23:52:01 -0800 Subject: [PATCH] experiment-only internal change Detailed description... ...text exposed to open source public git repo... PiperOrigin-RevId: 704990968 --- src/google/protobuf/message_lite.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/google/protobuf/message_lite.cc b/src/google/protobuf/message_lite.cc index efaad9d81195..f95a1cfe3c77 100644 --- a/src/google/protobuf/message_lite.cc +++ b/src/google/protobuf/message_lite.cc @@ -533,6 +533,8 @@ bool MessageLite::SerializeToZeroCopyStream( bool MessageLite::SerializePartialToZeroCopyStream( io::ZeroCopyOutputStream* output) const { const size_t size = ByteSizeLong(); // Force size to be cached. + ABSL_LOG(ERROR) << "dl_log: " << GetTypeName() + << " SerializePartialToZeroCopyStream size: " << size; if (size > INT_MAX) { ABSL_LOG(ERROR) << GetTypeName() << " exceeded maximum protobuf size of 2GB: " << size; @@ -581,6 +583,8 @@ bool MessageLite::AppendToString(std::string* output) const { bool MessageLite::AppendPartialToString(std::string* output) const { size_t old_size = output->size(); size_t byte_size = ByteSizeLong(); + ABSL_LOG(ERROR) << "dl_log: AppendPartialToString old_size: " << old_size + << " byte_size: " << byte_size; if (byte_size > INT_MAX) { ABSL_LOG(ERROR) << GetTypeName() << " exceeded maximum protobuf size of 2GB: " << byte_size;