#[cfg(feature = "tracing")]
macro_rules! info {
($($arg:tt)*) => { ::tracing::info!(target: "dynamic_config", $($arg)*) };
}
#[cfg(not(feature = "tracing"))]
macro_rules! info {
($($arg:tt)*) => { ::std::eprintln!("[dynamic-config] {}", ::std::format!($($arg)*)) };
}
#[cfg(feature = "tracing")]
macro_rules! warning {
($($arg:tt)*) => { ::tracing::warn!(target: "dynamic_config", $($arg)*) };
}
#[cfg(not(feature = "tracing"))]
macro_rules! warning {
($($arg:tt)*) => { ::std::eprintln!("[dynamic-config] {}", ::std::format!($($arg)*)) };
}
pub(crate) use {info, warning};