From a3dca06c35ec5364597e3995dbbc6d88b091e917 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 23 Feb 2019 09:28:56 +0100 Subject: [PATCH] Use config instead of os.environ --- dal/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dal/settings.py b/dal/settings.py index 867c8db..6523348 100644 --- a/dal/settings.py +++ b/dal/settings.py @@ -161,9 +161,11 @@ LOGGING = { }, } -if os.environ.get('ENABLE_DEBUG_LOG', '').strip().lower() == "true": +if config('ENABLE_DEBUG_LOG', default=False, cast=bool): loggers_dict = {} - modules_to_log_list = os.environ.get('MODULES_TO_LOG', 'django').split(',') + modules_to_log_list = config( + 'MODULES_TO_LOG', default='django', cast=Csv() + ) for custom_module in modules_to_log_list: logger_item = { custom_module: {