Module debug

Module debug 

Source
Expand description

Debug printer control for syncdoc.

Provides a thread-safe atomic flag for debug logging via STDERR and a function to enable it programmatically (runs automatically if compiled in cfg(test)).

Functionsยง

init_from_env
Initialise the debug atomic from the SYNCDOC_DEBUG environment variable.
is_enabled
Check whether debug output is enabled.
set_debug
Enable or disable debug output programmatically.