Replies: 1 comment
-
I also found this related discussion: #1587, which calls Directive::parse directly, but I guess it doesn't really matter since the user can still just trim the use tracing_subscriber::{EnvFilter, filter::Directive};
#[test]
fn test_parsing_with_directive() {
let filter = EnvFilter::from("info").add_directive(
" h3=debug" // Will panic
.parse::<Directive>()
.expect("leading/trailling space shouldn't cause it to fail?"),
);
assert_eq!("h3=debug,info", filter.to_string());
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Methods like "try_from_env(
&str
)" which seems to eventually resolve intotracing_subscriber::filter::Builder::parse
is rejecting spacings on listed items (aka: not trimming it before parsing). Is there any particular reason for rejecting spacings on listed items?Beta Was this translation helpful? Give feedback.
All reactions