diff --git a/logbasecommand/__init__.py b/logbasecommand/__init__.py index 27fdca4..81f0fde 100644 --- a/logbasecommand/__init__.py +++ b/logbasecommand/__init__.py @@ -1 +1 @@ -__version__ = "0.0.3" +__version__ = "0.0.4" 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] ) diff --git a/testapp/requirements.txt b/testapp/requirements.txt index a7b5362..c063619 100644 --- a/testapp/requirements.txt +++ b/testapp/requirements.txt @@ -2,4 +2,4 @@ pytest==6.2.5 pytest-cov==2.12.1 pytest-django==4.4.0 -black==20.8b1 +black==24.3.0