Исправлен фильтр журнала отладки
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
Описание класса LogDebugFilter
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class LogDebugFilter:
|
||||
"""
|
||||
@@ -22,4 +24,5 @@ class LogDebugFilter:
|
||||
:return: True, если уровень журнала DEBUG
|
||||
"""
|
||||
|
||||
return record.levelname == 'DEBUG'
|
||||
is_debug = bool(settings.DEBUG)
|
||||
return is_debug and record.levelname == 'DEBUG'
|
||||
|
||||
Reference in New Issue
Block a user