Skip to content

Commit

Permalink
feat(cli): info as default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
mrl5 committed Mar 14, 2022
1 parent 319a0f7 commit 9a5d613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ struct CliOptions {

#[tokio::main]
async fn main() {
env_logger::init();
env_logger::init_from_env(
env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info"),
);
log::debug!("initialized logger");
let opts = CliOptions::from_args();

Expand Down
4 changes: 1 addition & 3 deletions docs/COOKBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vulner --help
export VULNER_FEED_DIR=$HOME/vulner/feeds/json
export VULNER_OUT_DIR=$HOME/vulner/scan-results

RUST_LOG=info vulner sync
vulner sync
RUST_LOG=warn vulner scan
```
Results in:
Expand Down Expand Up @@ -65,7 +65,6 @@ kit="gnome-kit"

export VULNER_FEED_DIR=$HOME/vulner/feeds/json
export VULNER_OUT_DIR=$HOME/vulner/${kit}-scan-results
export RUST_LOG=info

vulner sync
vulner scan --pkg-dir /var/git/meta-repo/kits/${kit}/
Expand All @@ -76,7 +75,6 @@ vulner scan --pkg-dir /var/git/meta-repo/kits/${kit}/
```bash
export VULNER_FEED_DIR=$HOME/vulner/feeds/json
export VULNER_OUT_DIR=$HOME/vulner/${kit}-scan-results
export RUST_LOG=info

vulner sync
vulner scan --pkg-dir /var/git/meta-repo/ --recursive
Expand Down

0 comments on commit 9a5d613

Please sign in to comment.