Skip to content

Commit

Permalink
release 0.4.0 (#125)
Browse files Browse the repository at this point in the history
* release 0.4.0

* Resolve thread_local sec audit

Switch from stderrlog to env_logger and the former depends on a
flawed version of thread_local
  • Loading branch information
zeegomo authored Apr 6, 2022
1 parent 39f0f5b commit 42bfdb5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "catalyst-toolbox"
version = "0.3.0"
version = "0.4.0"
edition = "2021"

authors = ["danielsanchezq <[email protected]>"]
Expand Down Expand Up @@ -45,7 +45,7 @@ regex = "1.5"
serde = "1.0"
serde_json = "1.0"
structopt = "0.3"
stderrlog = "0.5"
env_logger = "0.9"
serde_yaml = "0.8.17"
sscanf = "0.1"
thiserror = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions src/bin/cli/recovery/tally.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ pub struct ReplayCli {
#[structopt(flatten)]
output_format: OutputFormat,

/// Verbose mode (-v, -vv, -vvv, etc)
#[structopt(short = "v", long = "verbose", parse(from_occurrences))]
verbose: usize,
/// Verbose mode
#[structopt(short = "v", long = "verbose")]
verbose: log::LevelFilter,
}

fn read_block0(path: PathBuf) -> Result<Block, Error> {
Expand All @@ -87,7 +87,7 @@ impl ReplayCli {
output_format,
verbose,
} = self;
stderrlog::new().verbosity(verbose).init().unwrap();
env_logger::Builder::new().filter_level(verbose).init();

let block0 = if let Some(path) = block0_path {
read_block0(path)?
Expand Down
8 changes: 4 additions & 4 deletions src/bin/cli/recovery/votes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ pub struct VotesPrintout {
#[structopt(flatten)]
output_format: OutputFormat,

/// Verbose mode (-v, -vv, -vvv, etc)
#[structopt(short = "v", long = "verbose", parse(from_occurrences))]
verbose: usize,
/// Verbose mode
#[structopt(short = "v", long = "verbose")]
verbose: log::LevelFilter,
}

#[derive(Serialize)]
Expand Down Expand Up @@ -102,7 +102,7 @@ impl VotesPrintout {
verbose,
} = self;

stderrlog::new().verbosity(verbose).init().unwrap();
env_logger::Builder::new().filter_level(verbose).init();
let reader = std::fs::File::open(block0_path)?;
let reader = std::io::BufReader::new(reader);
let block0 = Block::deserialize(&mut Codec::new(reader)).unwrap();
Expand Down

0 comments on commit 42bfdb5

Please sign in to comment.