Fix bug reading boolean config casting

This commit is contained in:
PCoder 2019-02-03 10:19:56 +01:00
parent 78098a3692
commit c670eb52e9

View file

@ -207,7 +207,7 @@ LOGGING = {
},
}
if config('ENABLE_DEBUG_LOG', False):
if config('ENABLE_DEBUG_LOG', cast=bool, default=False):
loggers_dict = {}
LOGGING['handlers']['file'] = {
'level': 'DEBUG',