From c00582ac29f8d6a38cfc7fffb67aebed5c0f3166 Mon Sep 17 00:00:00 2001 From: Kenneth Gitere Date: Fri, 30 Apr 2021 06:42:08 +0300 Subject: [PATCH] Fix verbosity levels ordering --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index abf8226..30c5367 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -123,10 +123,10 @@ It takes a url, downloads the article content from it and saves it to an epub. } let log_levels: [LogLevel; 5] = [ LogLevel::Off, - LogLevel::Debug, - LogLevel::Info, - LogLevel::Warn, LogLevel::Error, + LogLevel::Warn, + LogLevel::Info, + LogLevel::Debug, ]; let level = arg_matches.occurrences_of("verbosity").clamp(0, 4) as usize; app_config.log_level = log_levels[level];