feat(config): Given a LOGLEVEL env var let user change verbosity, default to INFO
This commit is contained in:
parent
a065550d50
commit
10d4d8f718
@ -77,7 +77,7 @@ logging.basicConfig(
|
||||
)
|
||||
log = logging.getLogger("rich")
|
||||
# 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 %}
|
||||
{%- if cookiecutter.uses_config_ini == "yes" %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user