Skip to content

Commit

Permalink
[fix] change logging level in waymirror-egl to Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerfulPianissimo committed Aug 25, 2024
1 parent bf3fe1b commit 4d5a242
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libwayshot/examples/waymirror-egl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use state::WaylandEGLState;

pub fn main() -> Result<(), Box<dyn std::error::Error>> {
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.with_writer(std::io::stderr)
.init();

Expand Down Expand Up @@ -51,13 +51,12 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
state.init_egl()?;
while state.running {
event_queue.dispatch_pending(&mut state)?;
// event_queue.blocking_dispatch(&mut state)?;
state.draw();
state
.egl
.swap_buffers(state.egl_display.unwrap(), state.egl_surface.unwrap())?;

//tracing::event!(tracing::Level::DEBUG, "eglSwapBuffers called");
tracing::trace!("eglSwapBuffers called");
}
state.deinit()?;

Expand Down

0 comments on commit 4d5a242

Please sign in to comment.