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