From 908f236b2eddb60c432158cba2c72695d6667eff Mon Sep 17 00:00:00 2001 From: JuanLeon Lahoz Date: Mon, 10 May 2021 13:30:22 +0200 Subject: [PATCH] fix: Make --verbose flag work ok --- src/main.rs | 4 ++-- tests/integration_tests.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 763a30c..1172b96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,9 +43,9 @@ fn configure_output(option: &str, verbose: bool) { }; TermLogger::init( if verbose { - LevelFilter::Info - } else { LevelFilter::Debug + } else { + LevelFilter::Info }, ConfigBuilder::new() .set_time_level(LevelFilter::Trace) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 14106c5..a203a43 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -102,7 +102,8 @@ fn test_plot() { writeln!(file, "3").unwrap(); writeln!(file, "4").unwrap(); writeln!(file, "none").unwrap(); - cmd.arg("plot") + cmd.arg("--verbose") + .arg("plot") .arg(file.path().to_str().unwrap()) .arg("--height") .arg("4")