diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index aa492a3..ebdf491 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,8 @@ use engine::object::Object; use engine::vector::Vec3; use engine::vertex::Builder as VertexBuilder; use engine::{Engine, WindowSize}; +use tracing::Level; +use tracing_subscriber::FmtSubscriber; const WINDOW_SIZE: WindowSize = WindowSize { width: 500, @@ -13,6 +15,12 @@ const WINDOW_SIZE: WindowSize = WindowSize { fn main() -> Result<(), Box<dyn Error>> { + let subscriber = FmtSubscriber::builder() + .with_max_level(Level::TRACE) + .finish(); + + tracing::subscriber::set_global_default(subscriber)?; + let engine = Engine::new(&WINDOW_SIZE, "Yaaay lmao")?; let triangle = Object::new(&[ |