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 MishraandAyush Kumar Mishra authored and GitHub committed 2020-11-03 15:18:02 +01:00
1 parent c753a867a5
commit 1fa7fed43a
1 file changed
+2 -2
+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))
};
}