Skip to content

Commit b28c935

Browse files
authored
subscriber: prepare to release v0.3.16 (#2342)
# 0.3.16 (October 6, 2022) This release of `tracing-subscriber` fixes a regression introduced in [v0.3.15][subscriber-0.3.15] where `Option::None`'s `Layer` implementation would set the max level hint to `OFF`. In addition, it adds several new APIs, including the `Filter::event_enabled` method for filtering events based on fields values, and the ability to log internal errors that occur when writing a log line. This release also replaces the dependency on the unmaintained [`ansi-term`] crate with the [`nu-ansi-term`] crate, resolving an *informational* security advisory ([RUSTSEC-2021-0139] for [`ansi-term`]'s maintainance status. This increases the minimum supported Rust version (MSRV) to Rust 1.50+, although the crate should still compile for the previous MSRV of Rust 1.49+ when the `ansi` feature is not enabled. ### Fixed - **layer**: `Option::None`'s `Layer` impl always setting the `max_level_hint` to `LevelFilter::OFF` (#2321) - Compilation with `-Z minimal versions` (#2246) - **env-filter**: Clarify that disabled level warnings are emitted by `tracing-subscriber` (#2285) ### Added - **fmt**: Log internal errors to `stderr` if writing a log line fails (#2102) - **fmt**: `FmtLayer::log_internal_errors` and `FmtSubscriber::log_internal_errors` methods for configuring whether internal writer errors are printed to `stderr` (#2102) - **fmt**: `#[must_use]` attributes on builders to warn if a `Subscriber` is configured but not set as the default subscriber (#2239) - **filter**: `Filter::event_enabled` method for filtering an event based on its fields (#2245, #2251) - **filter**: `Targets::default_level` accessor (#2242) ### Changed - **ansi**: Replaced dependency on unmaintained `ansi-term` crate with `nu-ansi-term` ((#2287, fixes informational advisory [RUSTSEC-2021-0139]) - `tracing-core`: updated to [0.1.30][core-0.1.30] - Minimum Supported Rust Version (MSRV) increased to Rust 1.50+ (when the `ansi`) feature flag is enabled (#2287) ### Documented - **fmt**: Correct inaccuracies in `fmt::init` documentation (#2224) - **filter**: Fix incorrect doc link in `filter::Not` combinator (#2249) Thanks to new contributors @cgbur, @DesmondWillowbrook, @RalfJung, and @poliorcetics, as well as returning contributors @CAD97, @connec, @jswrenn, @guswynn, and @bryangarza, for contributing to this release! [nu-ansi-term]: https://github.com/nushell/nu-ansi-term [ansi_term]: https://github.com/ogham/rust-ansi-term [RUSTSEC-2021-0139]: https://rustsec.org/advisories/RUSTSEC-2021-0139.html [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30 [subscriber-0.3.15]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.15
1 parent ecd7e06 commit b28c935

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

tracing-subscriber/CHANGELOG.md

+69
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,72 @@
1+
# 0.3.16 (October 6, 2022)
2+
3+
This release of `tracing-subscriber` fixes a regression introduced in
4+
[v0.3.15][subscriber-0.3.15] where `Option::None`'s `Layer` implementation would
5+
set the max level hint to `OFF`. In addition, it adds several new APIs,
6+
including the `Filter::event_enabled` method for filtering events based on
7+
fields values, and the ability to log internal errors that occur when writing a
8+
log line.
9+
10+
This release also replaces the dependency on the unmaintained [`ansi-term`]
11+
crate with the [`nu-ansi-term`] crate, resolving an *informational* security
12+
advisory ([RUSTSEC-2021-0139]) for [`ansi-term`]'s maintainance status. This
13+
increases the minimum supported Rust version (MSRV) to Rust 1.50+, although the
14+
crate should still compile for the previous MSRV of Rust 1.49+ when the `ansi`
15+
feature is not enabled.
16+
17+
### Fixed
18+
19+
- **layer**: `Option::None`'s `Layer` impl always setting the `max_level_hint`
20+
to `LevelFilter::OFF` ([#2321])
21+
- Compilation with `-Z minimal versions` ([#2246])
22+
- **env-filter**: Clarify that disabled level warnings are emitted by
23+
`tracing-subscriber` ([#2285])
24+
25+
### Added
26+
27+
- **fmt**: Log internal errors to `stderr` if writing a log line fails ([#2102])
28+
- **fmt**: `FmtLayer::log_internal_errors` and
29+
`FmtSubscriber::log_internal_errors` methods for configuring whether internal
30+
writer errors are printed to `stderr` ([#2102])
31+
- **fmt**: `#[must_use]` attributes on builders to warn if a `Subscriber` is
32+
configured but not set as the default subscriber ([#2239])
33+
- **filter**: `Filter::event_enabled` method for filtering an event based on its
34+
fields ([#2245], [#2251])
35+
- **filter**: `Targets::default_level` accessor ([#2242])
36+
37+
### Changed
38+
39+
- **ansi**: Replaced dependency on unmaintained `ansi-term` crate with
40+
`nu-ansi-term` (([#2287], fixes informational advisory [RUSTSEC-2021-0139])
41+
- `tracing-core`: updated to [0.1.30][core-0.1.30]
42+
- Minimum Supported Rust Version (MSRV) increased to Rust 1.50+ (when the
43+
`ansi`) feature flag is enabled ([#2287])
44+
45+
### Documented
46+
47+
- **fmt**: Correct inaccuracies in `fmt::init` documentation ([#2224])
48+
- **filter**: Fix incorrect doc link in `filter::Not` combinator ([#2249])
49+
50+
Thanks to new contributors @cgbur, @DesmondWillowbrook, @RalfJung, and
51+
@poliorcetics, as well as returning contributors @CAD97, @connec, @jswrenn,
52+
@guswynn, and @bryangarza, for contributing to this release!
53+
54+
[nu-ansi-term]: https://github.com/nushell/nu-ansi-term
55+
[ansi_term]: https://github.com/ogham/rust-ansi-term
56+
[RUSTSEC-2021-0139]: https://rustsec.org/advisories/RUSTSEC-2021-0139.html
57+
[core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30
58+
[subscriber-0.3.15]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.15
59+
[#2321]: https://github.com/tokio-rs/tracing/pull/2321
60+
[#2246]: https://github.com/tokio-rs/tracing/pull/2246
61+
[#2285]: https://github.com/tokio-rs/tracing/pull/2285
62+
[#2102]: https://github.com/tokio-rs/tracing/pull/2102
63+
[#2239]: https://github.com/tokio-rs/tracing/pull/2239
64+
[#2245]: https://github.com/tokio-rs/tracing/pull/2245
65+
[#2251]: https://github.com/tokio-rs/tracing/pull/2251
66+
[#2287]: https://github.com/tokio-rs/tracing/pull/2287
67+
[#2224]: https://github.com/tokio-rs/tracing/pull/2224
68+
[#2249]: https://github.com/tokio-rs/tracing/pull/2249
69+
170
# 0.3.15 (Jul 20, 2022)
271

372
This release fixes a bug where the `reload` layer would fail to pass through

tracing-subscriber/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tracing-subscriber"
3-
version = "0.3.15"
3+
version = "0.3.16"
44
authors = [
55
"Eliza Weisman <eliza@buoyant.io>",
66
"David Barsky <me@davidbarsky.com>",
@@ -38,7 +38,7 @@ valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracin
3838
local-time = ["time/local-offset"]
3939

4040
[dependencies]
41-
tracing-core = { path = "../tracing-core", version = "0.1.28", default-features = false }
41+
tracing-core = { path = "../tracing-core", version = "0.1.30", default-features = false }
4242

4343
# only required by the filter feature
4444
tracing = { optional = true, path = "../tracing", version = "0.1.35", default-features = false }

0 commit comments

Comments
 (0)