aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-07-14 15:07:32 +0100
committerdiogo464 <[email protected]>2021-07-14 15:07:32 +0100
commit1c0dee8e60d9c1c989a3712e7d1e19debe981e8a (patch)
tree07997fddae442679c90914b2c4abe3c953250838 /dotup_cli/src/main.rs
parent4adc2435da7d58cd34b9f1706b3cea9fb524b946 (diff)
Small changes to logging and docs.
Diffstat (limited to 'dotup_cli/src/main.rs')
-rw-r--r--dotup_cli/src/main.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/dotup_cli/src/main.rs b/dotup_cli/src/main.rs
index 05fdcab..d500a7d 100644
--- a/dotup_cli/src/main.rs
+++ b/dotup_cli/src/main.rs
@@ -38,8 +38,6 @@ struct Opts {
38 38
39 /// A level of verbosity, and can be used multiple times 39 /// A level of verbosity, and can be used multiple times
40 /// 40 ///
41 /// Level 0 - Warnings (Default)
42 ///
43 /// Level 1 - Info 41 /// Level 1 - Info
44 /// 42 ///
45 /// Level 2 - Debug 43 /// Level 2 - Debug
@@ -66,15 +64,14 @@ fn main() -> anyhow::Result<()> {
66 64
67 if !opts.quiet { 65 if !opts.quiet {
68 let log_level = match opts.verbose { 66 let log_level = match opts.verbose {
69 0 => "warn", 67 0 => "info",
70 1 => "info", 68 1 => "debug",
71 2 => "debug",
72 _ => "trace", 69 _ => "trace",
73 }; 70 };
74 71
75 Logger::try_with_env_or_str(log_level)? 72 Logger::try_with_env_or_str(log_level)?
76 .format(flexi_logger::colored_default_format) 73 .format(flexi_logger::colored_default_format)
77 //.set_palette("196;208;32;198;15".to_string()) 74 .set_palette("196;208;32;198;15".to_string())
78 .start()?; 75 .start()?;
79 } 76 }
80 77