|
|
@ -97,10 +97,6 @@ const char kDebugStringSilentMarkerForDetection[] = "\t "; |
|
|
|
// Controls insertion of kDebugStringSilentMarker into DebugString() output.
|
|
|
|
// Controls insertion of kDebugStringSilentMarker into DebugString() output.
|
|
|
|
PROTOBUF_EXPORT std::atomic<bool> enable_debug_text_format_marker; |
|
|
|
PROTOBUF_EXPORT std::atomic<bool> enable_debug_text_format_marker; |
|
|
|
|
|
|
|
|
|
|
|
// Controls insertion of a marker making debug strings non-parseable, and
|
|
|
|
|
|
|
|
// redacting annotated fields.
|
|
|
|
|
|
|
|
PROTOBUF_EXPORT std::atomic<bool> enable_debug_text_redaction{true}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int64_t GetRedactedFieldCount() { |
|
|
|
int64_t GetRedactedFieldCount() { |
|
|
|
return num_redacted_field.load(std::memory_order_relaxed); |
|
|
|
return num_redacted_field.load(std::memory_order_relaxed); |
|
|
|
} |
|
|
|
} |
|
|
@ -182,8 +178,7 @@ std::string StringifyMessage(const Message& message, Option option) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
printer.SetExpandAny(true); |
|
|
|
printer.SetExpandAny(true); |
|
|
|
printer.SetRedactDebugString( |
|
|
|
printer.SetRedactDebugString(true); |
|
|
|
internal::enable_debug_text_redaction.load(std::memory_order_relaxed)); |
|
|
|
|
|
|
|
printer.SetRandomizeDebugString(true); |
|
|
|
printer.SetRandomizeDebugString(true); |
|
|
|
printer.SetReportSensitiveFields(reporter); |
|
|
|
printer.SetReportSensitiveFields(reporter); |
|
|
|
std::string result; |
|
|
|
std::string result; |
|
|
|