Added LOG_LEVEL env var, to make it configurable through .env

This commit is contained in:
Kamil
2024-11-24 21:14:47 +00:00
parent 961e175a7d
commit e5416ed800
2 changed files with 4 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import sys
class Config:
LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO').upper()
SECRET_KEY = os.getenv('SECRET_KEY')
JELLYFIN_SERVER_URL = os.getenv('JELLYFIN_SERVER_URL')
JELLYFIN_ADMIN_USER = os.getenv('JELLYFIN_ADMIN_USER')
@@ -28,6 +29,7 @@ class Config:
'output': '/jellyplist_downloads/__jellyplist/{track-id}',
'threads': 12
}
@classmethod
def validate_env_vars(cls):
required_vars = {