Description
Bug Report
Version
mixed
Platform
macOS
Description
-
Depend on
tracing-subscriber = { version = 0.3.18, features = ["env-filter", "json", "registry", "tracing-log"] }
from crates.io -
Set an env filter to a string like
warn,collab::rpc=info
-
Notice that output from
tracing::error!
insidecollab::rpc
with level ERROR is not printed to the console. -
Replace
tracing-subscriber = { git = "https://github.com/tokio-rs/tracing", rev = "tracing-subscriber-0.3.18", features = ["env-filter", "json", "registry", "tracing-log"] }
-
Notice that output from
tracing::error!
insidecollab::rpc
with level ERROR is printed to the console
We dug into this a little bit and noticed that the published version of tracing-subscriber
depends on tracing-core
v0.1.30 but when we depend on the git repository directly we get a version of tracing-core that's just a bit newer than v0.1.32
. It seems to be the case that when the versions mismatch like this the filtering logic is sometimes wrong.