[fractal/wip/christopherdavis/fix-stable-build: 2/2] fractal-gtk: Clean up some mistakes with loggerv



commit a3654a6ae1bc26838504baad652bf94dbfde48ec
Author: Christopher Davis <brainblasted disroot org>
Date:   Sat Mar 9 16:19:25 2019 -0500

    fractal-gtk: Clean up some mistakes with loggerv
    
    When allowing stable builds to test verbosity, there
    were a few mistakes that caused the stable build to fail.
    This commit cleans up those mistakes and makes sure
    we don't have an unused variable that produced a warning
    for stable builds.

 fractal-gtk/src/main.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/fractal-gtk/src/main.rs b/fractal-gtk/src/main.rs
index 118a8eb9..17f65329 100644
--- a/fractal-gtk/src/main.rs
+++ b/fractal-gtk/src/main.rs
@@ -25,7 +25,9 @@ use crate::app::App;
 use gio::ApplicationExt;
 use gio::ApplicationExtManual;
 
+#[cfg(debug_assertions)]
 use log::Level;
+
 use loggerv;
 
 fn main() -> Result<(), Box<dyn Error>> {
@@ -35,12 +37,12 @@ fn main() -> Result<(), Box<dyn Error>> {
             .arg(
                 clap::Arg::with_name("v")
                     .short("v")
-                    .multiple("true")
+                    .multiple(true)
                     .help("Sets the level of verbosity"),
             )
             .get_matches();
 
-        loggerv::init_with_level(clap_args.occurrences_of("v"))
+        loggerv::init_with_verbosity(clap_args.occurrences_of("v"))
             .expect("Failed to initialize logger");
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]