1
1
mirror of https://github.com/wez/wezterm.git synced 2025-01-01 01:59:49 +03:00

tidy up log levels for wgpu

This commit is contained in:
Wez Furlong 2021-05-08 22:59:51 -07:00
parent c2afe83d5d
commit 5f5a48c830
2 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,8 @@ pub fn get_entries() -> Vec<Entry> {
pub fn setup_logger() {
let mut builder = pretty_env_logger::formatted_timed_builder();
builder.filter(Some("wgpu_core"), log::LevelFilter::Error);
builder.filter(Some("gfx_backend_metal"), log::LevelFilter::Error);
if let Ok(s) = std::env::var("WEZTERM_LOG") {
builder.parse_filters(&s);
} else {

View File

@ -268,6 +268,8 @@ async fn spawn_window() -> anyhow::Result<()> {
fn main() -> anyhow::Result<()> {
let _ = pretty_env_logger::formatted_builder()
.filter(Some("wgpu_core"), log::LevelFilter::Error)
.filter(Some("gfx_backend_metal"), log::LevelFilter::Error)
.filter_level(log::LevelFilter::Info)
.try_init();
let conn = Connection::init()?;