Change init_with_level to init in examples

This commit is contained in:
Thomas 2023-09-09 22:42:41 +02:00
parent 052fe0edae
commit fbc9ef74c4
4 changed files with 2 additions and 4 deletions

View file

@ -18,4 +18,3 @@ iced.features = ["image", "debug", "webgl"]
console_error_panic_hook = "0.1"
console_log = "1.0"
log.workspace = true

View file

@ -10,7 +10,7 @@ use iced::{Color, Element, Font, Length, Renderer, Sandbox, Settings};
pub fn main() -> iced::Result {
#[cfg(target_arch = "wasm32")]
{
console_log::init_with_level(log::Level::Debug).expect("Initialize logger");
console_log::init().expect("Initialize logger");
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
}