mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Reenable logging if possible
This commit is contained in:
parent
60c6ec66d1
commit
9c910a1ed4
@ -19,9 +19,10 @@ mod wasm_experiment;
|
||||
|
||||
#[wasm_bindgen(start)]
|
||||
pub fn start() {
|
||||
//console_log::init_with_level(Level::Info).expect("error initializing log");
|
||||
if let Err(_) = console_log::init_with_level(Level::Info) {
|
||||
// Failed to initialize logging. No need to log a message.
|
||||
}
|
||||
panic::set_hook(Box::new(console_error_panic_hook::hook));
|
||||
//wasm_bindgen_futures::spawn_local(run());
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user