Skip to main content

Module debug

Module debug 

Source
Expand description

Debug logging helpers.

This crate primarily prints user-facing progress messages to stdout. Any verbose diagnostics should be gated behind an environment variable and must never leak secrets (tokens, client secrets, etc.).

Functionsยง

enabled
Returns true when debug logging is enabled.
log
Print a debug line to stderr when enabled.
redact_json_secrets
Redact token-like values from a JSON string.
token_hint
Returns a safe, non-reversible hint for a token.