Skip to content

Commit

Permalink
fix: #337
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Jan 4, 2025
1 parent 5f85c3c commit 06baea1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ use std::{
};

macro_rules! trace {
($($arg:tt)+) => {
($($arg:tt)+) => {{
#[cfg(feature = "tracing")]
tracing::trace!($($arg)+);
}
}}
}
macro_rules! debug {
($($arg:tt)+) => {
($($arg:tt)+) => {{
#[cfg(feature = "tracing")]
tracing::debug!($($arg)+);
}
}}
}
macro_rules! info {
($($arg:tt)+) => {
($($arg:tt)+) => {{
#[cfg(feature = "tracing")]
tracing::info!($($arg)+);
}
}}
}
macro_rules! warning {
($($arg:tt)+) => {
($($arg:tt)+) => {{
#[cfg(feature = "tracing")]
tracing::warn!($($arg)+);
}
}}
}
macro_rules! error {
($($arg:tt)+) => {
($($arg:tt)+) => {{
#[cfg(feature = "tracing")]
tracing::error!($($arg)+);
}
}}
}
pub(crate) use debug;
pub(crate) use error;
Expand Down

0 comments on commit 06baea1

Please sign in to comment.