From e9978b03385c951ef0763bf4f8fa7b5345cbde1b Mon Sep 17 00:00:00 2001 From: Bogdan Peter Date: Tue, 26 Mar 2024 11:53:25 +0200 Subject: [PATCH] Change set level to allow for all possible verbosity levels to be set --- 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] )