summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/main.rs
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/tour/src/main.rs
parent052fe0edaeb0d6ce096375751eec02b953faf2a1 (diff)
downloadiced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.gz
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.bz2
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.zip
Change init_with_level to init in examples
Diffstat (limited to '')
-rw-r--r--examples/tour/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index f0e3c0cd..3387b481 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -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));
}