From c2acbd00afff0d3114c9d480ab386ac3a1cd11e5 Mon Sep 17 00:00:00 2001 From: peterbppb <91122533+peterbppb@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:57:50 +0200 Subject: [PATCH] Change set level to allow for all possible verbosity levels to be set (#10) Co-authored-by: Bogdan Peter --- logbasecommand/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logbasecommand/base.py b/logbasecommand/base.py index 237e835..38c44c7 100644 --- a/logbasecommand/base.py +++ b/logbasecommand/base.py @@ -56,8 +56,8 @@ def execute(self, *args, **options): self.logger.setLevel( [ logging.ERROR, - max(self.logger.getEffectiveLevel(), logging.INFO), - logging.DEBUG, + logging.INFO, + logging.WARNING, logging.DEBUG, ][self.verbosity] )