workflow_service/
debug.rs

1//! global atomic debug flag (for developer testing)
2
3use crate::imports::*;
4
5static DEBUG: AtomicBool = AtomicBool::new(false);
6
7pub fn enable(debug: bool) {
8    DEBUG.store(debug, Ordering::SeqCst);
9}
10
11pub fn debug() -> bool {
12    DEBUG.load(Ordering::SeqCst)
13}