Skip to content

Commit

Permalink
fix: use env for tracing env filter
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Nov 8, 2022
1 parent 7f3a034 commit aa51ab0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use std::path::Path;

use anyhow::Context;
use glam::{vec3, vec4, Quat, Vec3};
use tracing_subscriber::EnvFilter;
use wgpu::util::DeviceExt;
use winit::{
event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent},
Expand All @@ -31,9 +32,9 @@ mod types;

pub mod wgsl;

use clap::{command, Parser};
use blit_state::BlitState;
use camera::CameraState;
use clap::{command, Parser};
use main_state::{Instance, MainState};
use texture::Texture;
use types::*;
Expand All @@ -49,7 +50,7 @@ pub struct WgpuState {

fn main() -> anyhow::Result<()> {
tracing_subscriber::FmtSubscriber::builder()
.with_env_filter("wgpu=trace,wgpu_openxr-example=trace")
.with_env_filter(EnvFilter::from_default_env())
.init();

const MAIN_TRIANGLE_SCALE: f32 = 1.0;
Expand Down

0 comments on commit aa51ab0

Please sign in to comment.