Skip to content

Commit

Permalink
feat(naga-cli)!: init. logger to INFO by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler authored and jimblandy committed Oct 30, 2024
1 parent 08c9d8c commit 25f0819
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions naga-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion naga-cli/src/bin/naga.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 25f0819

Please sign in to comment.