2025-09-17 06:55:39 +09:00
|
|
|
//! Runner tracing helpers (verbose-guarded)
|
2025-09-17 05:56:33 +09:00
|
|
|
|
2025-09-17 06:55:39 +09:00
|
|
|
/// Return whether CLI verbose logging is enabled
|
2025-09-18 13:35:38 +09:00
|
|
|
#[allow(dead_code)]
|
2025-09-17 07:43:07 +09:00
|
|
|
pub fn cli_verbose() -> bool {
|
|
|
|
|
crate::config::env::cli_verbose()
|
|
|
|
|
}
|
2025-09-17 05:56:33 +09:00
|
|
|
|
2025-09-17 06:55:39 +09:00
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! cli_v {
|
|
|
|
|
($($arg:tt)*) => {{
|
|
|
|
|
if crate::config::env::cli_verbose() { eprintln!($($arg)*); }
|
|
|
|
|
}};
|
2025-09-17 05:56:33 +09:00
|
|
|
}
|
|
|
|
|
|
2025-09-17 07:12:15 +09:00
|
|
|
/// Unstructured trace output function used by pipeline helpers
|
2025-09-17 07:43:07 +09:00
|
|
|
pub fn log<S: AsRef<str>>(msg: S) {
|
|
|
|
|
eprintln!("{}", msg.as_ref());
|
|
|
|
|
}
|