mirror of
https://github.com/facebookexperimental/reverie.git
synced 2025-01-23 05:06:23 +00:00
switch tests to only log reverie messages
Summary: Right now we get a whole bunch of annoying messages from tokio that spam our test logs: 2022-06-10T15:09:59.751928Z TRACE runtime.spawn{kind=block_on task.name= loc.file="hermetic_infra/reverie/reverie-ptrace/src/testing.rs" loc.line=58 loc.col=8}:runtime.spawn{kind=local task.name= loc.file="third-party/rust/vendor/tokio-1.15.0/src/task/local.rs" loc.line=302 loc.col=22}: tokio::task::waker: op="waker.drop" task.id=26 This diff makes the filter more restrictive for reverie tests. Reviewed By: johnhurt Differential Revision: D37071398 fbshipit-source-id: fe93ec3cc0cf61938be10d40df6fe2f46979fbf9
This commit is contained in:
parent
674fbb2af5
commit
a11fa11768
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ pub fn print_tracee_output(output: &Output) {
|
|||
/// Configure tokio and tracing in the way that we like, and run the future.
|
||||
pub fn run_tokio_test<F: Future>(fut: F) -> F::Output {
|
||||
let collector = tracing_subscriber::fmt()
|
||||
.with_max_level(tracing::Level::TRACE)
|
||||
.with_env_filter("reverie=trace")
|
||||
.finish();
|
||||
|
||||
// For reentrancy during testing we need to set up logging early because mio
|
||||
|
|
Loading…
Reference in a new issue