Uh oh!
There was an error while loading. Please reload this page.
rustc_driver: Enable the WARN log level by default - #89634
Conversation
This commit changes the `tracing_subscriber` initialization in `rustc_driver` so that the `WARN` verbosity level is enabled by default when the `RUSTC_LOG` env variable is empty. If the `RUSTC_LOG` env variable is set, the filter string in the environment variable is honored, instead. Fixesrust-lang#76824Closesrust-lang#89623 cc @eddyb, @oli-obk
rust-highfive
commented
Oct 7, 2021
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon. Please see the contribution instructions for more information. |
hawkw
commented
Oct 7, 2021
This closes PR #89623, because it also makes that change (always enabling |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Joshua Nelson <github@jyn.dev>
This comment has been minimized.
This comment has been minimized.
@lcnr do you know whether that |
hawkw
commented
Oct 7, 2021
In general, I notice that there are actually a number of |
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw
commented
Oct 7, 2021
Okay, I changed the If these changes aren't desired, I can back them out? |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
| call: PeekCall, | ||
| ) { | ||
| warn!("peek_at: place={:?}", place); | ||
| info!(?place, "peek_at"); |
There was a problem hiding this comment.
cc @nikomatsakis@pnkfelix Is this expected to be used in nightly builds? If not, can this be debug!/trace!?
Uh oh!
There was an error while loading. Please reload this page.
I don't remember adding that |
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw
commented
Oct 7, 2021
The question of whether it should be |
This comment has been minimized.
This comment has been minimized.
T_____T Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This comment has been minimized.
This comment has been minimized.
hawkw
commented
Oct 7, 2021
I'm assuming that the solution here is just to update the UI tests to expect that stdout will contain warnings, but I wanted to make sure that was the case. |
eddyb
commented
Oct 8, 2021
I think so. These should probably even be lint warnings, but I don't know for sure. |
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
oli-obk
commented
Oct 8, 2021
@bors r+ |
bors
commented
Oct 8, 2021
📌 Commit 84fc5db has been approved by |
oli-obk
commented
Oct 8, 2021
@bors try @rust-timer queue |
rust-timer
commented
Oct 8, 2021
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Oct 8, 2021
⌛ Trying commit 84fc5db with merge 916f0b2c6080aa60cdee9000d44045f7a23022a3... |
bors
commented
Oct 8, 2021
☀️ Try build successful - checks-actions |
rust-timer
commented
Oct 8, 2021
Queued 916f0b2c6080aa60cdee9000d44045f7a23022a3 with parent 87df4dd, future comparison URL. |
rust-timer
commented
Oct 8, 2021
Finished benchmarking commit (916f0b2c6080aa60cdee9000d44045f7a23022a3): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
oli-obk
commented
Oct 9, 2021
@bors r+ rollup |
bors
commented
Oct 9, 2021
📌 Commit 84fc5db has been approved by |
rustc_driver: Enable the `WARN` log level by default This commit changes the `tracing_subscriber` initialization in `rustc_driver` so that the `WARN` verbosity level is enabled by default when the `RUSTC_LOG` env variable is empty. If the `RUSTC_LOG` env variable is set, the filter string in the environment variable is honored, instead. Fixesrust-lang#76824Closesrust-lang#89623 cc `@eddyb,` `@oli-obk`
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#88707 (String.split_terminator: Add an example when using a slice of chars) - rust-lang#89605 (Fix stabilization version for `bindings_after_at`) - rust-lang#89634 (rustc_driver: Enable the `WARN` log level by default) - rust-lang#89641 (make #[target_feature] work with `asm` register classes) - rust-lang#89678 (Fix minor std::thread documentation typo) - rust-lang#89684 (Fix asm docs typo) - rust-lang#89687 (Move `read2_abbreviated` function into read2.rs) - rust-lang#89693 (Add #[must_use] to stdin/stdout/stderr locks) - rust-lang#89694 (Add #[must_use] to string/char transformation methods) - rust-lang#89697 (Fix min LLVM version for bpf-types test) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
hawkw
commented
Oct 9, 2021
🙌 |
…ulacrum Don't emit a warning for empty rmeta files. This avoids displaying a warning when attempting to load an empty rmeta file. Warnings were enabled via rust-lang#89634 which can cause a lot of noise (for example, running `./x.py check`). rustc generates empty rmeta files for things like binaries, which can happen when checking libraries as unittests. Closesrust-lang#89795
This commit changes the
tracing_subscriberinitialization inrustc_driverso that theWARNverbosity level is enabled by defaultwhen the
RUSTC_LOGenv variable is empty. If theRUSTC_LOGenvvariable is set, the filter string in the environment variable is
honored, instead.
Fixes#76824
Closes#89623
cc @eddyb, @oli-obk