summaryrefslogtreecommitdiffstats
path: root/examples/tour
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
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/Cargo.toml1
-rw-r--r--examples/tour/src/main.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml
index 11920e0d..9e984ad1 100644
--- a/examples/tour/Cargo.toml
+++ b/examples/tour/Cargo.toml
@@ -18,4 +18,3 @@ iced.features = ["image", "debug", "webgl"]
console_error_panic_hook = "0.1"
console_log = "1.0"
-log.workspace = true
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));
}