Skip to content

Commit d0c913f

Browse files
committed
implement verbosity
1 parent dd1c98a commit d0c913f

File tree

1 file changed

+13
-0
lines changed
  • catalyst-toolbox/src/bin/cli/recovery

1 file changed

+13
-0
lines changed

catalyst-toolbox/src/bin/cli/recovery/votes.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@ impl VotesPrintout {
102102
verbose,
103103
} = self;
104104

105+
if verbose > 0 {
106+
std::env::set_var(
107+
"RUST_LOG",
108+
match verbose {
109+
0 => unreachable!(),
110+
1 => "warn",
111+
2 => "info",
112+
3 => "debug",
113+
_ => "trace",
114+
},
115+
)
116+
}
117+
105118
let reader = std::fs::File::open(block0_path)?;
106119
let block0 = Block::deserialize(&mut Codec::new(reader)).unwrap();
107120

0 commit comments

Comments
 (0)