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.).

Enums§

DebugLevel
Debug level for output control

Functions§

enabled
Returns true when debug logging is enabled.
get_debug_level
Get the current debug level from environment variable or flags
log
Print a debug line to stderr when enabled.
log_api_context
Print debug information for API call context
log_error_code
Log Slack error code if present in response
log_trace
Print trace-level debug information
redact_json_secrets
Redact token-like values from a JSON string.
token_hint
Returns a safe, non-reversible hint for a token.