Перенос служебных методов настроек
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
Описание класса CustomLoggerDebugFilter
|
Описание класса CustomLoggerDebugFilter
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.conf import settings
|
from net.xeaf.rack.utils.settings import SettingUtils
|
||||||
|
|
||||||
|
|
||||||
class CustomLoggerDebugFilter:
|
class CustomLoggerDebugFilter:
|
||||||
@@ -24,5 +24,5 @@ class CustomLoggerDebugFilter:
|
|||||||
:return: True, если уровень журнала DEBUG
|
:return: True, если уровень журнала DEBUG
|
||||||
"""
|
"""
|
||||||
|
|
||||||
is_debug = bool(settings.DEBUG)
|
is_debug = SettingUtils.is_debug_mode()
|
||||||
return is_debug and record.levelname == 'DEBUG'
|
return is_debug and record.levelname.upper() == 'DEBUG'
|
||||||
|
|||||||
Reference in New Issue
Block a user