Browse Source
feat: rely on `tracing-subscriber` in tests (#4950 )
`tracing` crate is already used within the codebase, this change allows
developers to benefit from that functionality when running and debugging
tests
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
pull/4956/head
Roman Volosatovs
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
5 deletions
Cargo.lock
crates/test-programs/Cargo.toml
crates/test-programs/tests/wasm_tests/main.rs
@ -2846,10 +2846,10 @@ dependencies = [
"cap-std",
"cap-std",
"cfg-if",
"cfg-if",
"os_pipe",
"os_pipe",
"pretty_env_logger",
"target-lexicon",
"target-lexicon",
"tempfile",
"tempfile",
"tokio",
"tokio",
"tracing-subscriber",
"wasi-cap-std-sync",
"wasi-cap-std-sync",
"wasi-common",
"wasi-common",
"wasmtime",
"wasmtime",
@ -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 = { path = "../wasmtime" , version = "2.0.0" }
wasmtime-wasi = { path = "../wasi" , version = "2.0.0" , features = [ "tokio" ] }
wasmtime-wasi = { path = "../wasi" , version = "2.0.0" , features = [ "tokio" ] }
target-lexicon = "0.12.0"
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"
tempfile = "3.1.0"
os_pipe = "0.9"
os_pipe = "0.9"
anyhow = "1.0.19"
anyhow = "1.0.19"
@ -7,9 +7,7 @@ use std::sync::Once;
static LOG_INIT : Once = Once ::new ( ) ;
static LOG_INIT : Once = Once ::new ( ) ;
fn setup_log ( ) {
fn setup_log ( ) {
LOG_INIT . call_once ( | | {
LOG_INIT . call_once ( tracing_subscriber ::fmt ::init )
pretty_env_logger ::init ( ) ;
} )
}
}
include ! ( concat ! ( env ! ( "OUT_DIR" ) , "/wasi_tests.rs" ) ) ;
include ! ( concat ! ( env ! ( "OUT_DIR" ) , "/wasi_tests.rs" ) ) ;