Mountain/IPC/DevLog/IsShort.rs
1
2//! `true` when `Trace=short` is set - enables path aliasing
3//! and consecutive-duplicate compression in `dev_log!`.
4
5use std::sync::OnceLock;
6
7use crate::IPC::DevLog::IsEnabled;
8
9static SHORT_MODE:OnceLock<bool> = OnceLock::new();
10
11pub fn Fn() -> bool { *SHORT_MODE.get_or_init(|| IsEnabled::EnabledTags().iter().any(|T| T == "short")) }