Made correction in sp-tracing macros to use level parameter #7348 (#7388)

Co-authored-by: Ayush Kumar Mishra <ayush.k.mishra@xcelenergy.com>
This commit is contained in:
Ayush Mishra
2020-11-03 19:48:02 +05:30
committed by GitHub
parent c753a867a5
commit 1fa7fed43a
+2 -2
View File
@@ -164,7 +164,7 @@ macro_rules! within_span {
$( $code:tt )*
) => {
{
$crate::within_span!($crate::span!($crate::Level::TRACE, $name); $( $code )*)
$crate::within_span!($crate::span!($lvl, $name); $( $code )*)
}
};
}
@@ -233,6 +233,6 @@ macro_rules! enter_span {
let __tracing_guard__ = __within_span__.enter();
};
( $lvl:expr, $name:expr ) => {
$crate::enter_span!($crate::span!($crate::Level::TRACE, $name))
$crate::enter_span!($crate::span!($lvl, $name))
};
}