Skip to content

Commit

Permalink
Set default log level as warn
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed May 2, 2020
1 parent ab84800 commit b2b0f7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
12 changes: 1 addition & 11 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ wasminspect-vm = { path = "crates/vm" }
wast-spec = { path = "crates/wast-spec" }
clap = "2.33.0"
structopt = "0.3"
pretty_env_logger = "0.4.0"
env_logger = "0.7.1"

[workspace]
members = [
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use pretty_env_logger;
use env_logger;
use structopt::StructOpt;
use wasminspect_cli;

Expand All @@ -13,7 +13,8 @@ struct Opts {
}

fn main() {
pretty_env_logger::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("warn"));

let opts = Opts::from_args();
match wasminspect_cli::run_loop(opts.filepath, opts.source) {
Err(err) => println!("{:?}", err),
Expand Down

0 comments on commit b2b0f7e

Please sign in to comment.