mirror of
https://github.com/JanNeuendorf/SVC16.git
synced 2025-06-04 18:45:27 +00:00
Made debug prints depend on --verbose
This commit is contained in:
parent
c846b26da9
commit
09e947cd0a
@ -27,7 +27,7 @@ pub struct Cli {
|
||||
short,
|
||||
long,
|
||||
default_value_t = false,
|
||||
help = "Show performance metrics"
|
||||
help = "Show performance metrics and debug info"
|
||||
)]
|
||||
pub verbose: bool,
|
||||
#[arg(
|
||||
|
10
src/main.rs
10
src/main.rs
@ -78,10 +78,12 @@ async fn main() -> Result<()> {
|
||||
ipf = 0;
|
||||
while !engine.wants_to_sync() && ipf <= MAX_IPF {
|
||||
if let Some(debug_output) = engine.step()? {
|
||||
println!(
|
||||
"DEBUG label: {} values: {}, {}",
|
||||
debug_output.0, debug_output.1, debug_output.2
|
||||
);
|
||||
if cli.verbose {
|
||||
println!(
|
||||
"DEBUG label: {} values: {}, {}",
|
||||
debug_output.0, debug_output.1, debug_output.2
|
||||
);
|
||||
}
|
||||
}
|
||||
ipf += 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user