From 47e8cf224f196d9961c95530233d76df93251785 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Mon, 7 Oct 2024 16:36:41 -0400 Subject: [PATCH] no colors in console --- tests/common/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 776ee60..0573f3f 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -8,7 +8,10 @@ static INIT: OnceCell<()> = OnceCell::const_new(); pub async fn init() { INIT.get_or_init(|| async { console::log_1(&"INIT".into()); - tracing_wasm::set_as_global_default(); + let config = tracing_wasm::WASMLayerConfigBuilder::default() + .set_console_config(tracing_wasm::ConsoleConfig::ReportWithoutConsoleColor) + .build(); + tracing_wasm::set_as_global_default_with_config(config); console_error_panic_hook::set_once(); diesel_wasm_sqlite::init_sqlite().await; })