-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Reduce verbosity of tracing output of RUSTC_LOG #87903
Conversation
What part is unreadable to you? The duplication when you enter and immediately enter a nested one? In longer chains it can sometimes be helpful to see which function you came from, but I get your point. We should make this configurable, as I implemented it for miri, which already had this behavior before we used WRT the wraparound, I personally would also prefer no wraparound, so 👍 from me, may get a lot of rightwards drift though. |
Here's a decent example of how the verbose entry is difficult to read:
without:
This shows a couple things:
Verbose exit, I suppose, can go either way. But it doesn't really work without the verbose entry (example below, without entry, with/without exit). I find the extra space at the end of the block helpful for mentally parsing the control flow, which you don't get with verbose entry/exit.
vs without
One other (big) downside of repeating spans: if you're grepping for a call and you have repeated spans you may now have multiple matches whereas before you had one. The |
@bors r+ |
@bors rollup |
@bors r=oli-obk |
📌 Commit 62b8a5e has been approved by |
Reduce verbosity of tracing output of RUSTC_LOG The current output is really hard to read, I find, for things like trait selection. I nearly always end up removing these calls locally. r? `@oli-obk` since you originally authored this
Reduce verbosity of tracing output of RUSTC_LOG The current output is really hard to read, I find, for things like trait selection. I nearly always end up removing these calls locally. r? ``@oli-obk`` since you originally authored this
Rollup of 7 pull requests Successful merges: - rust-lang#85835 (Implement Extend<(A, B)> for (Extend<A>, Extend<B>)) - rust-lang#87671 (Warn when an escaped newline skips multiple lines) - rust-lang#87878 (:arrow_up: rust-analyzer) - rust-lang#87903 (Reduce verbosity of tracing output of RUSTC_LOG) - rust-lang#87925 (Update books) - rust-lang#87928 (Update cargo) - rust-lang#87942 (set the executable bit on pre-commit.sh) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The current output is really hard to read, I find, for things like trait selection. I nearly always end up removing these calls locally.
r? @oli-obk since you originally authored this