Skip to content

Latest commit

 

History

History
23 lines (19 loc) Β· 799 Bytes

File metadata and controls

23 lines (19 loc) Β· 799 Bytes

+++ title = "Redaction in Rust" weight = 783 linkTitle = "Redaction in Rust" description = "Describes redaction in Rust." type = "docs" +++

Use the standard fmt::Debug ("{:?}" in format strings) on Protobuf messages for human-readable strings for logging, error messages, exceptions, and similar use cases. The output of this debug info is not intended to be machine-readable (unlike TextFormat and JSON which are not be used for debug output).

Using fmt::Debug enables redaction of some sensitive fields.

Note that under upb kernel this redaction is not yet implemented, but is expected to be added.