Skip to content

Commit

Permalink
Ignore s_glBindAttribLocation lines from sim
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Jun 23, 2022
1 parent 4ce057b commit 1760ab9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rslib-bridge/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,26 @@ fn monitor_io_handle(handle: BufferRedirect) {
// currently EOF
std::thread::sleep(Duration::from_secs(1));
}
Ok(_) => log::debug!("{}", buf),
Ok(_) => {
if !should_ignore_line(&buf) {
log::debug!("{}", buf)
}
}
Err(err) => log::debug!("stdio err: {}", err),
}
}
});
}

fn should_ignore_line(buf: &str) -> bool {
// quieten simulator noise
if buf.starts_with("s_glBindAttribLocation") {
true
} else {
false
}
}

pub(crate) fn setup_logging() -> Logger {
// failure is expected after the first backend invocation
let _ = redirect_io();
Expand Down

0 comments on commit 1760ab9

Please sign in to comment.