show panics in the toast in wasm (#4582)
This commit is contained in:
1 parent
165447a647
commit
74163984be
7 files changed
+68
-12
No files matched your search
@@ -22,7 +22,6 @@ default = []
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
tracing-wasm = { workspace = true }
|
||||
console_error_panic_hook = { workspace = true }
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
tracing-subscriber = { workspace = true, features = ["fmt"] }
|
||||
|
||||
@@ -91,7 +91,6 @@ pub fn init(level: Level) -> Result<(), SetGlobalDefaultError> {
|
||||
let layer = tracing_wasm::WASMLayer::new(layer_config);
|
||||
let reg = Registry::default().with(layer);
|
||||
|
||||
console_error_panic_hook::set_once();
|
||||
set_global_default(reg)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user