From 4a7246cbd87ba04a3577da6f4cbd6eba78db719f Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 8 Jun 2022 13:06:16 +0200 Subject: [PATCH] Add logs --- engine_core/src/state.rs | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engine_core/src/state.rs b/engine_core/src/state.rs index 1e6f33b..e0aeffc 100644 --- a/engine_core/src/state.rs +++ b/engine_core/src/state.rs @@ -78,6 +78,7 @@ impl State { } pub fn input(&mut self, event: &WindowEvent) -> bool { + log::info!("{:#?}", event); false } diff --git a/src/main.rs b/src/main.rs index fdb2fef..399819d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use simplelog::{TermLogger, LevelFilter, Config, TerminalMode, ColorChoice}; fn main() { - if let Err(err) = TermLogger::init(LevelFilter::Warn, Config::default(), TerminalMode::Mixed, ColorChoice::Auto) { + if let Err(err) = TermLogger::init(LevelFilter::Info, Config::default(), TerminalMode::Mixed, ColorChoice::Auto) { println!("Failed to start logger : {}", err); }