From 06baea1727c68413a188d7d896b872078274f38c Mon Sep 17 00:00:00 2001 From: "Carson M." Date: Sat, 4 Jan 2025 11:07:25 -0600 Subject: [PATCH] fix: #337 --- src/logging.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/logging.rs b/src/logging.rs index cfd42a0d..78b67d0d 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -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;