Skip to content

Commit

Permalink
tracing-test: enable 'no-env-filter' feature
Browse files Browse the repository at this point in the history
Summary:
by default, tracing-test sets an env filter that filters out all logs except the one from your crate. this diff enables 'no-env-filter' to include the logs of all crates. i hope this to make using `logs_contain` for expect testing more useful (but it might have a negative effect on existing usage since now all logs from all dependencies will be captured in which case we might need to re-evaluate the decision to do this).

see https://fb.workplace.com/groups/learningrust/permalink/3920525634884959/ for some more context on this diff

Reviewed By: dtolnay

Differential Revision: D68959300

fbshipit-source-id: 54b231b2b5730ffbda9c0b50fe11b8c023784369
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Jan 31, 2025
1 parent f4fc986 commit c91189d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/scm/lib/copytrace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ tracing = { version = "0.1.41", features = ["attributes", "valuable"] }
[dev-dependencies]
sapling-manifest-tree = { version = "0.1.0", path = "../manifest-tree", features = ["for-tests"] }
tokio = { version = "1.41.0", features = ["full", "test-util", "tracing"] }
tracing-test = "0.2.3"
tracing-test = { version = "0.2.3", features = ["no-env-filter"] }

0 comments on commit c91189d

Please sign in to comment.