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