Change init_with_level to init in examples
This commit is contained in:
parent
052fe0edae
commit
fbc9ef74c4
4 changed files with 2 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ use winit::platform::web::WindowBuilderExtWebSys;
|
|||
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
let canvas_element = {
|
||||
console_log::init_with_level(log::Level::Debug)?;
|
||||
console_log::init().expect("Initialize logger");
|
||||
|
||||
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue