Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracing: Fix wrong log level in warn macro #1929 #1930

Merged
merged 1 commit into from Feb 16, 2022

Conversation

nicolaasg
Copy link
Contributor

tracing: Fix wrong log level in warn macro

Fixes: #1929

@nicolaasg nicolaasg requested review from hawkw, davidbarsky and a team as code owners February 16, 2022 19:35
@hawkw hawkw enabled auto-merge (squash) February 16, 2022 19:47
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this looks good to me!

@hawkw hawkw merged commit 55e6c98 into tokio-rs:master Feb 16, 2022
@nicolaasg nicolaasg deleted the tracing-macros-warn-fix branch February 16, 2022 20:03
hawkw pushed a commit that referenced this pull request Feb 17, 2022
## 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 <nicolaas.geldenhuys@cartrack.com>
hawkw pushed a commit that referenced this pull request Feb 17, 2022
## 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 <nicolaas.geldenhuys@cartrack.com>
hawkw added a commit that referenced this pull request Feb 17, 2022
# 0.1.31 (February 17th, 2022)

This release increases the minimum supported Rust version (MSRV) to
1.49.0. In addition, it fixes some relatively rare macro bugs.

### Added

- Added `tracing-forest` to the list of related crates ([#1935])

### Changed

- Updated minimum supported Rust version (MSRV) to 1.49.0 ([#1913])

### Fixed

- Fixed the `warn!` macro incorrectly generating an event with the
  `TRACE` level ([#1930])
- Fixed macro hygiene issues when used in a crate that defines its own
  `concat!` macro, for real this time ([#1918])

Thanks to @QnnOkabayashi, @nicolaasg, and @teohhanhui for contributing
to this release!

[#1935]: #1935
[#1913]: #1913
[#1930]: #1930
[#1918]: #1918
hawkw added a commit that referenced this pull request Feb 17, 2022
# 0.1.31 (February 17th, 2022)

This release increases the minimum supported Rust version (MSRV) to
1.49.0. In addition, it fixes some relatively rare macro bugs.

### Added

- Added `tracing-forest` to the list of related crates ([#1935])

### Changed

- Updated minimum supported Rust version (MSRV) to 1.49.0 ([#1913])

### Fixed

- Fixed the `warn!` macro incorrectly generating an event with the
  `TRACE` level ([#1930])
- Fixed macro hygiene issues when used in a crate that defines its own
  `concat!` macro, for real this time ([#1918])

Thanks to @QnnOkabayashi, @nicolaasg, and @teohhanhui for contributing
to this release!

[#1935]: #1935
[#1913]: #1913
[#1930]: #1930
[#1918]: #1918
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong log level in tracing macro warn
2 participants