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:
parent
c2afe83d5d
commit
5f5a48c830
@ -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 {
|
||||
|
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user