diff --git a/Cargo.lock b/Cargo.lock index 64d1101759..349e88b5b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2846,10 +2846,10 @@ dependencies = [ "cap-std", "cfg-if", "os_pipe", - "pretty_env_logger", "target-lexicon", "tempfile", "tokio", + "tracing-subscriber", "wasi-cap-std-sync", "wasi-common", "wasmtime", diff --git a/crates/test-programs/Cargo.toml b/crates/test-programs/Cargo.toml index 7644e7bb7d..0ec677ff53 100644 --- a/crates/test-programs/Cargo.toml +++ b/crates/test-programs/Cargo.toml @@ -16,7 +16,7 @@ wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", version = "2.0.0" } wasmtime = { path = "../wasmtime", version = "2.0.0" } wasmtime-wasi = { path = "../wasi", version = "2.0.0", features = ["tokio"] } target-lexicon = "0.12.0" -pretty_env_logger = "0.4.0" +tracing-subscriber = { version = "0.3.1", default-features = false, features = ['fmt'] } tempfile = "3.1.0" os_pipe = "0.9" anyhow = "1.0.19" diff --git a/crates/test-programs/tests/wasm_tests/main.rs b/crates/test-programs/tests/wasm_tests/main.rs index 41e542bc8f..44fb127db8 100644 --- a/crates/test-programs/tests/wasm_tests/main.rs +++ b/crates/test-programs/tests/wasm_tests/main.rs @@ -7,9 +7,7 @@ use std::sync::Once; static LOG_INIT: Once = Once::new(); fn setup_log() { - LOG_INIT.call_once(|| { - pretty_env_logger::init(); - }) + LOG_INIT.call_once(tracing_subscriber::fmt::init) } include!(concat!(env!("OUT_DIR"), "/wasi_tests.rs"));