pub fn debug_record_enabled() -> boolExpand description
Would a Debug-status record actually reach the log right now? True only
when the global log level admits Debug (default is Info; --verbose/
--debug raise it — util/logger.rs::init) AND output is not suppressed.
The Debug! macro gates message construction on this: the 2026-08-23
audit measured up to ~26% of a build-bound conversion spent serializing
node_to_string subtrees into Debug! messages that emit_record then
discarded (PERFORMANCE.md, Open levers P0). An atomic load + thread-local
read — cheap enough for token-frequency call sites.