Перенос служебных методов настроек

This commit is contained in:
2026-07-19 20:55:25 +03:00
parent 9e71bb6e29
commit 9939aa5799

View File

@@ -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'