Skip to content

Warn when RUST_LOG contains a name that isn't a valid path #2038

Description

@jdm

I can't imagine any reason you would actually want a name that isn't a valid logging identifier.

Activity

  1. catamorphism commented on Apr 19, 2012

    @catamorphism
    Contributor

    Should be fixed as part of implementing #2033.

  2. bblum commented on Jun 21, 2013

    @bblum
    Contributor

    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.

  3. emberian commented on Aug 11, 2013

    @emberian
    Contributor
    [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.

  4. bblum commented on Aug 11, 2013

    @bblum
    Contributor

    Nice!

  5. added 11 commits that reference this issue on May 2, 2020
  6. added a commit that references this issue on Mar 3, 2026
  7. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: 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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions