feat(config): Given a LOGLEVEL env var let user change verbosity, default to INFO

This commit is contained in:
hygienic-books 2022-07-05 18:36:29 +02:00
parent a065550d50
commit 10d4d8f718

View File

@ -77,7 +77,7 @@ logging.basicConfig(
) )
log = logging.getLogger("rich") log = logging.getLogger("rich")
# Our own code logs with this level # Our own code logs with this level
log.setLevel(logging.DEBUG) log.setLevel(os.environ.get("LOGLEVEL") if "LOGLEVEL" in [k for k, v in os.environ.items()] else logging.INFO)
{%- endif %} {%- endif %}
{%- if cookiecutter.uses_config_ini == "yes" %} {%- if cookiecutter.uses_config_ini == "yes" %}