mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +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",
|
"bincode",
|
||||||
"codespan-reporting",
|
"codespan-reporting",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
|
"log",
|
||||||
"naga",
|
"naga",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ codespan-reporting.workspace = true
|
|||||||
env_logger.workspace = true
|
env_logger.workspace = true
|
||||||
argh.workspace = true
|
argh.workspace = true
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
|
log.workspace = true
|
||||||
|
|
||||||
[dependencies.naga]
|
[dependencies.naga]
|
||||||
version = "23.0.0"
|
version = "23.0.0"
|
||||||
|
@ -375,7 +375,10 @@ impl fmt::Display for CliError {
|
|||||||
impl std::error::Error for CliError {}
|
impl std::error::Error for CliError {}
|
||||||
|
|
||||||
fn run() -> anyhow::Result<()> {
|
fn run() -> anyhow::Result<()> {
|
||||||
env_logger::init();
|
env_logger::builder()
|
||||||
|
.filter_level(log::LevelFilter::Info)
|
||||||
|
.parse_default_env()
|
||||||
|
.init();
|
||||||
|
|
||||||
// Parse commandline arguments
|
// Parse commandline arguments
|
||||||
let args: Args = argh::from_env();
|
let args: Args = argh::from_env();
|
||||||
|
Loading…
Reference in New Issue
Block a user