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: {