Plugins can now register .env settings

This commit is contained in:
Agate 2020-08-25 09:55:57 +02:00
parent f52ae5228f
commit ea83511d0a
4 changed files with 40 additions and 1 deletions

View file

@ -18,7 +18,7 @@ ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /)
APPS_DIR = ROOT_DIR.path("funkwhale_api")
env = environ.Env()
ENV = env
LOGLEVEL = env("LOGLEVEL", default="info").upper()
"""
Default logging level for the Funkwhale processes""" # pylint: disable=W0105