mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 14:23:32 +00:00
feat(naga-cli)!: init. logger to INFO
by default
This commit is contained in:
parent
08c9d8c397
commit
25f0819edd
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1912,6 +1912,7 @@ dependencies = [
|
||||
"bincode",
|
||||
"codespan-reporting",
|
||||
"env_logger",
|
||||
"log",
|
||||
"naga",
|
||||
]
|
||||
|
||||
|
@ -23,6 +23,7 @@ codespan-reporting.workspace = true
|
||||
env_logger.workspace = true
|
||||
argh.workspace = true
|
||||
anyhow.workspace = true
|
||||
log.workspace = true
|
||||
|
||||
[dependencies.naga]
|
||||
version = "23.0.0"
|
||||
|
@ -375,7 +375,10 @@ impl fmt::Display for CliError {
|
||||
impl std::error::Error for CliError {}
|
||||
|
||||
fn run() -> anyhow::Result<()> {
|
||||
env_logger::init();
|
||||
env_logger::builder()
|
||||
.filter_level(log::LevelFilter::Info)
|
||||
.parse_default_env()
|
||||
.init();
|
||||
|
||||
// Parse commandline arguments
|
||||
let args: Args = argh::from_env();
|
||||
|
Loading…
Reference in New Issue
Block a user