-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
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. Fixes rust-lang#76824 Closes rust-lang#89623 cc @eddyb, @oli-obk
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. |
This closes PR #89623, because it also makes that change (always enabling |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Joshua Nelson <github@jyn.dev>
This comment has been minimized.
This comment has been minimized.
@lcnr do you know whether that |
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>
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.
warn!("peek_at: place={:?}", place); | ||
info!(?place, "peek_at"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @nikomatsakis @pnkfelix Is this expected to be used in nightly builds? If not, can this be debug!
/trace!
?
I don't remember adding that |
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
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.
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. |
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>
@bors r+ |
📌 Commit 84fc5db has been approved by |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 84fc5db with merge 916f0b2c6080aa60cdee9000d44045f7a23022a3... |
☀️ Try build successful - checks-actions |
Queued 916f0b2c6080aa60cdee9000d44045f7a23022a3 with parent 87df4dd, future comparison URL. |
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 |
@bors r+ rollup |
📌 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. Fixes rust-lang#76824 Closes rust-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
🙌 |
…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. Closes rust-lang#89795
This commit changes the
tracing_subscriber
initialization inrustc_driver
so that theWARN
verbosity level is enabled by defaultwhen the
RUSTC_LOG
env variable is empty. If theRUSTC_LOG
envvariable is set, the filter string in the environment variable is
honored, instead.
Fixes #76824
Closes #89623
cc @eddyb, @oli-obk