From 1c0dee8e60d9c1c989a3712e7d1e19debe981e8a Mon Sep 17 00:00:00 2001 From: diogo464 Date: Wed, 14 Jul 2021 15:07:32 +0100 Subject: Small changes to logging and docs. --- dotup_cli/src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dotup_cli/src/main.rs') 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 { /// A level of verbosity, and can be used multiple times /// - /// Level 0 - Warnings (Default) - /// /// Level 1 - Info /// /// Level 2 - Debug @@ -66,15 +64,14 @@ fn main() -> anyhow::Result<()> { if !opts.quiet { let log_level = match opts.verbose { - 0 => "warn", - 1 => "info", - 2 => "debug", + 0 => "info", + 1 => "debug", _ => "trace", }; Logger::try_with_env_or_str(log_level)? .format(flexi_logger::colored_default_format) - //.set_palette("196;208;32;198;15".to_string()) + .set_palette("196;208;32;198;15".to_string()) .start()?; } -- cgit