Skip to content

Commit

Permalink
🔊 - Move logging to env_logger
Browse files Browse the repository at this point in the history
This adds the ability to use log levels for CI. Running `RUST_LOG=warn
rewatch build` will only use `warn` and up.

See the [env_logger](https://docs.rs/env_logger/latest/env_logger/)
crate for more info.
  • Loading branch information
Roland Peelen authored and rolandpeelen committed Nov 15, 2024
1 parent 89a36b0 commit 4c4d725
Show file tree
Hide file tree
Showing 22 changed files with 436 additions and 266 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

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

6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ serde_json = { version = "1.0.93" }
ahash = "0.8.3"
convert_case = "0.6.0"
rayon = "1.6.1"
log = { version = "0.4.17", features = [
"max_level_debug",
"release_max_level_warn",
] }
log = { version = "0.4.17" }
env_logger = "0.10.0"
indicatif = "0.17.3"
console = "0.15.5"
Expand All @@ -26,6 +23,7 @@ futures-timer = "3.0.2"
clap = { version = "4.3.17", features = ["derive"] }
sysinfo = "0.29.10"
ctrlc = "3.4.4"
clap-verbosity-flag = "2.2.2"


[profile.release]
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Options:
-n, --no-timing <NO_TIMING>
[possible values: true, false]
-v, --verbose...
Increase logging verbosity
-q, --quiet...
Decrease logging verbosity
-c, --create-sourcedirs <CREATE_SOURCEDIRS>
This creates a source_dirs.json file at the root of the monorepo, which is needed when you want to use Reanalyze
Expand All @@ -84,6 +90,7 @@ Options:
-V, --version
Print version
```

# Contributing
Expand Down
Loading

0 comments on commit 4c4d725

Please sign in to comment.