Repository navigation
Warn when RUST_LOG contains a name that isn't a valid path #2038
Copy link
Copy link
Closed
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Activity
Should be fixed as part of implementing #2033.
That bug is now closed, but this is still an issue.
The place to implement this in the old runtime is in
update_log_settings. Not sure how the new runtime will deal with it.[16:02:15]~/hacking/rust/src/rt> RUST_LOG=foo rustc warning: got 1 RUST_LOG specs but only matched 0 of them. You may have mistyped a RUST_LOG spec. Use RUST_LOG=::help to see the list of crates and modules.Closing.
Nice!
- added 11 commits that reference this issue
on May 2, 2020 - added a commit that references this issue
on Mar 3, 2026 - added a commit that references this issue
on Aug 21, 2026
Metadata
Metadata
Assignees
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I can't imagine any reason you would actually want a name that isn't a valid logging identifier.