aboutsummaryrefslogtreecommitdiff
path: root/examples/render-bsp
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit412d09b7ce9afcb812b748a08621ad9ca70a7966 (patch)
treec44e93749c8d9805b0821517539f4b5e5e5be8d7 /examples/render-bsp
parent83e4ac1499b548957c554f740934b9b2a02310aa (diff)
fix(render-bsp): dont use deprecated simplelogger
Diffstat (limited to 'examples/render-bsp')
-rw-r--r--examples/render-bsp/Cargo.toml2
-rw-r--r--examples/render-bsp/src/main.rs5
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/render-bsp/Cargo.toml b/examples/render-bsp/Cargo.toml
index eb58e4a..82e9cb5 100644
--- a/examples/render-bsp/Cargo.toml
+++ b/examples/render-bsp/Cargo.toml
@@ -10,5 +10,5 @@ stockton-types = { path = "../../stockton-types" }
stockton-levels = { path = "../../stockton-levels" }
winit = "^0.21"
log = "0.4.0"
-simple_logger = "1.0"
+simple_logger = "^1.11"
image = "0.23.2"
diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs
index 1f85ed8..4c7ef03 100644
--- a/examples/render-bsp/src/main.rs
+++ b/examples/render-bsp/src/main.rs
@@ -27,7 +27,10 @@ use stockton_types::Session;
fn main() {
// Initialise logger
- simple_logger::init_with_level(log::Level::Debug).unwrap();
+ simple_logger::SimpleLogger::new()
+ .with_level(log::LevelFilter::Debug)
+ .init()
+ .unwrap();
// Make a window
let event_loop = EventLoop::new();