summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Thomas <thomasbirke@gmx.de>2023-09-09 22:42:41 +0200
committerLibravatar Thomas <thomasbirke@gmx.de>2023-09-09 22:42:41 +0200
commitfbc9ef74c406b2a58bb2a093262323e346faf485 (patch)
tree08b39b5293f8526f9fc30deceb927a9e41c9d610 /examples/integration
parent052fe0edaeb0d6ce096375751eec02b953faf2a1 (diff)
downloadiced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.gz
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.bz2
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.zip
Change init_with_level to init in examples
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/Cargo.toml1
-rw-r--r--examples/integration/src/main.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/integration/Cargo.toml b/examples/integration/Cargo.toml
index 6b9fcc57..a4a961f8 100644
--- a/examples/integration/Cargo.toml
+++ b/examples/integration/Cargo.toml
@@ -19,6 +19,5 @@ iced_wgpu.features = ["webgl"]
console_error_panic_hook = "0.1"
console_log = "1.0"
-log.workspace = true
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = ["Element", "HtmlCanvasElement", "Window", "Document"] }
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index af48af5f..d0b2d891 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -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));