[fractal/wip/christopherdavis/fix-stable-build] fractal-gtk: Clean up some mistakes with loggerv
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/wip/christopherdavis/fix-stable-build] fractal-gtk: Clean up some mistakes with loggerv
- Date: Sat, 9 Mar 2019 21:23:08 +0000 (UTC)
commit f2908bd135fe66ff5b2e75614c1b934ad388997b
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]