Skip to content
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

the env-filter feature is not additive #3084

Open
lolbinarycat opened this issue Sep 20, 2024 · 0 comments
Open

the env-filter feature is not additive #3084

lolbinarycat opened this issue Sep 20, 2024 · 0 comments

Comments

@lolbinarycat
Copy link

Bug Report

Version

│   │   │   └── tracing v0.1.40
│   │   │       ├── tracing-attributes v0.1.27 (proc-macro)
│   │   │       └── tracing-core v0.1.32
├── tracing v0.1.40 (*)
└── tracing-subscriber v0.3.18
    ├── tracing v0.1.40 (*)
    ├── tracing-core v0.1.32 (*)
    └── tracing-log v0.2.0
        └── tracing-core v0.1.32 (*)
└── tracing-subscriber v0.3.18 (*)

Platform

Linux blueberry 6.8.12 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 30 07:49:53 UTC 2024 x86_64 GNU/Linux

Crates

tracing_subscriber

Description

cargo features should be strictly additive, but env-filter changes the behavior of tracing_subscriber::fmt::init in a way that is not fully documented. worse, replicating the behavior of tracing_subscriber::fmt::init in a way that doesn't change depending on what features are enabled is non-trivial and requires several extra imports, as well as reading the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant