mirror of
https://github.com/JanNeuendorf/SVC16.git
synced 2025-06-06 03:25:28 +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,
|
short,
|
||||||
long,
|
long,
|
||||||
default_value_t = false,
|
default_value_t = false,
|
||||||
help = "Show performance metrics"
|
help = "Show performance metrics and debug info"
|
||||||
)]
|
)]
|
||||||
pub verbose: bool,
|
pub verbose: bool,
|
||||||
#[arg(
|
#[arg(
|
||||||
|
10
src/main.rs
10
src/main.rs
@ -78,10 +78,12 @@ async fn main() -> Result<()> {
|
|||||||
ipf = 0;
|
ipf = 0;
|
||||||
while !engine.wants_to_sync() && ipf <= MAX_IPF {
|
while !engine.wants_to_sync() && ipf <= MAX_IPF {
|
||||||
if let Some(debug_output) = engine.step()? {
|
if let Some(debug_output) = engine.step()? {
|
||||||
println!(
|
if cli.verbose {
|
||||||
"DEBUG label: {} values: {}, {}",
|
println!(
|
||||||
debug_output.0, debug_output.1, debug_output.2
|
"DEBUG label: {} values: {}, {}",
|
||||||
);
|
debug_output.0, debug_output.1, debug_output.2
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ipf += 1;
|
ipf += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user