Index: third_party/protobuf/src/google/protobuf/util/message_differencer.cc |
diff --git a/third_party/protobuf/src/google/protobuf/util/message_differencer.cc b/third_party/protobuf/src/google/protobuf/util/message_differencer.cc |
index 0f879dc72be18d3b3895319ecd162997f5f98419..fe8119bf3d54d972fa7131b7547d2217256dfd81 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/message_differencer.cc |
+++ b/third_party/protobuf/src/google/protobuf/util/message_differencer.cc |
@@ -47,6 +47,7 @@ |
#include <google/protobuf/stubs/callback.h> |
#include <google/protobuf/stubs/common.h> |
+#include <google/protobuf/stubs/logging.h> |
#include <google/protobuf/stubs/stringprintf.h> |
#include <google/protobuf/any.h> |
#include <google/protobuf/io/printer.h> |
@@ -455,7 +456,9 @@ bool MessageDifferencer::Compare( |
const Descriptor* descriptor2 = message2.GetDescriptor(); |
if (descriptor1 != descriptor2) { |
GOOGLE_LOG(DFATAL) << "Comparison between two messages with different " |
- << "descriptors."; |
+ << "descriptors. " |
+ << descriptor1->full_name() << " vs " |
+ << descriptor2->full_name(); |
return false; |
} |
// Expand google.protobuf.Any payload if possible. |
@@ -1021,7 +1024,7 @@ bool MessageDifferencer::UnpackAny(const Message& any, |
any.GetDescriptor()->file()->pool()->FindMessageTypeByName( |
full_type_name); |
if (desc == NULL) { |
- GOOGLE_LOG(ERROR) << "Proto type '" << full_type_name << "' not found"; |
+ GOOGLE_DLOG(ERROR) << "Proto type '" << full_type_name << "' not found"; |
return false; |
} |
@@ -1031,7 +1034,7 @@ bool MessageDifferencer::UnpackAny(const Message& any, |
data->reset(dynamic_message_factory_->GetPrototype(desc)->New()); |
string serialized_value = reflection->GetString(any, value_field); |
if (!(*data)->ParseFromString(serialized_value)) { |
- GOOGLE_LOG(ERROR) << "Failed to parse value for " << full_type_name; |
+ GOOGLE_DLOG(ERROR) << "Failed to parse value for " << full_type_name; |
return false; |
} |
return true; |
@@ -1384,7 +1387,7 @@ bool MessageDifferencer::MatchRepeatedFieldIndices( |
// algorithm will fail to find a maximum matching. |
// Here we use the argumenting path algorithm. |
MaximumMatcher::NodeMatchCallback* callback = |
- google::protobuf::internal::NewPermanentCallback( |
+ ::google::protobuf::internal::NewPermanentCallback( |
this, &MessageDifferencer::IsMatch, |
repeated_field, key_comparator, |
&message1, &message2, parent_fields); |