Skip to content

Commit b37d8af

Browse files
nicolaasgNicolaas Geldenhuys
authored andcommitted
tracing: fix wrong log level in warn! macro (#1930)
## Motivation I was scrolling through the code in `tracing/src/macros.rs` and noticed a possibly wrong log level in the `warn!` macro: https://github.com/tokio-rs/tracing/blob/4e65750b13721fee7a7ac05b053e1b9c3d21244f/tracing/src/macros.rs#L1698 ## Solution This branch changes the level to `Level::WARN` in the incorrect macro arm. Fixes: #1929 Co-authored-by: Nicolaas Geldenhuys <[email protected]>
1 parent e5921ba commit b37d8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ macro_rules! warn {
17011701
(%$($k:ident).+ = $($field:tt)*) => (
17021702
$crate::event!(
17031703
target: module_path!(),
1704-
$crate::Level::TRACE,
1704+
$crate::Level::WARN,
17051705
{ %$($k).+ = $($field)*}
17061706
)
17071707
);

0 commit comments

Comments
 (0)